Hmm. I don't believe mount will do what I want, as every server has different NFS mounts I need to modify. Can I say "modify every NFS mount so that it's nosuid" without actually specifying the mountpoints?
On Monday, July 7, 2014 9:13:44 PM UTC-5, Pete wrote: > > Is there a reason you aren't using the builtin mount type? > I believe it can do everything you require. > > http://docs.puppetlabs.com/references/stable/type.html#mount > > On 8 July 2014 04:42, Kim Scarborough <[email protected] <javascript:>> > wrote: > > I'm trying to get Puppet to add "nosuid" to all my nfs or nfs4 mount > entries > > in /etc/fstab. I'm currently using this: > > > > augeas { "fstab-nosuid": > > context => "/files/etc/fstab/*[vfstype = 'nfs' or vfstype = > > 'nfs4'][count(opt[. = 'nosuid']) = 0]", > > > > changes => [ > > "ins opt after opt[last()]", > > "set opt[last()] nosuid" > > ], > > > > onlyif => "match /files/etc/fstab/*[vfstype = 'nfs' or > vfstype = > > 'nfs4'][count(opt[. = 'nosuid']) = 0] size > 0", > > } > > > > > > This works, but it only edits a single line per run. How can I change it > to > > do all of the relevant lines at once? > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/puppet-users/a3163d8a-ed0c-4472-b201-54dfd4b68d95%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/23570670-35b0-4e50-bd2d-57f8eca8b0c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
