Hi again,
I'm trying to manage mount options in /etc/fstab with Augeas but can't
figure out how to add more than one option.
augeas { "/etc/fstab":
context => "/files/etc/fstab",
changes => [
'set *[file = "/tmp"]/opt nosuid',
'set *[file = "/home"]/opt nosuid',
],
}
I would like to add "nodev" as well but can't figure out how. When I
simply replace "nosuid" with "nosuid,nodev" it fails with:
err: /Stage[main]/System::Files/Augeas[/etc/fstab]/returns: change from
need_to_run to 0 failed: Save failed with return code false
I have just spent some time in augtool but am still confused. I have
manually changed the options for /apps to defaults,nosuid and this is
augtool's output:
augtool> print /files/etc/fstab/*[file = "/apps"]
/files/etc/fstab/3
/files/etc/fstab/3/file = "/apps"
/files/etc/fstab/3/opt[1] = "defaults"
/files/etc/fstab/3/opt[2] = "nosuid"
[..]
Now I can "set /files/etc/fstab/3/opt[2] nodev" but can't figure out:
1. how to do it with the [file="/apps"] because I don't know the index
(.../3/...) for each mountpoint.
2. how to add a new 'opt' for mountpoints that only have 'default' at
the moment.
Any ideas?
Thanks!
GiBo
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.