Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puppet does not attempt to mount using target fstab file. #59

Open
mojibake-umd opened this issue May 3, 2024 · 0 comments
Open

Puppet does not attempt to mount using target fstab file. #59

mojibake-umd opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mojibake-umd
Copy link

Describe the Bug

/etc/fstab.d/foo_bar.fstab is specified as the target file to store mount table,
however once the target file is created puppet attempts looking for mounts in /etc/fstab

Expected Behavior

Expect that the mount command would include -T, --fstab to specify the fstab file it just created.
ala mount --fstab /etc/fstab.d/foo_bar.fstab /sftpjail/foo/bar

Steps to Reproduce

Steps to reproduce the behavior:

  mount { "/sftpjail/foo/bar":
    ensure  => mounted,
    device  => "/mnt/sites/foo",
    fstype  => 'none',
    options => 'noauto,bind,x-systemd.requires=foo.service',
    target  => "/etc/fstab.d/foo_bar.fstab",
    require => File["/mnt/sites/foo"],
  }

Results:

Notice: /Stage[main]/my_module::Config/my_module::Mount[/sftpjail/foo/bar/]/File[/etc/fstab.d/foo_bar.fstab]/ensure: created (corrective)
Notice: /Stage[main]/my_module::Config/my_module::Mount[/sftpjail/foo/bar/]/Mount[/sftpjail/foo/bar]/ensure: defined 'ensure' as 'mounted' (corrective)
Info: Computing checksum on file /etc/fstab.d/foo_bar.fstab
Error: /Stage[main]/my_module::Config/my_module::Mount[/sftpjail/foo/bar/]/Mount[/sftpjail/foo/bar]: Could not evaluate: Execution of '/usr/bin/mount /sftpjail/foo/bar' returned 1: mount: can't find /sftpjail/foo/bar in /etc/fstab
Info: my_module::Mount[/sftpjail/foo/bar/]: Unscheduling all events on my_module::Mount[/sftpjail/foo/bar/]

Environment

  • Version 1.0.4
  • Platform RHEL 7.9

Additional Context

Add any other context about the problem here.

@mojibake-umd mojibake-umd added the bug Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant