-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working