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 puppet-users+unsubscr...@googlegroups.com.
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.

Reply via email to