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]> 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]. > 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/CAJ8DPF6qChiFDADbp5L%3DA3tkUvzHQ49Y7vLnxPdSfzBdgWi8vw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
