Actually, the native mount type can also be used with an augeas-based provider 
if you use the herculesteam/augeasproviders_mounttab module.

This brings the simplicity of a native module with the power and safety of 
Augeas under the hood.

As for the original code by OP, there are Augeas errors in there. It is 
possible to achieve this simple option change though, but the nodes in the tree 
must be ordered properly.


  augeas { 'fstabxfsnobarrier':
    context => '/files/etc/fstab',
    changes => [
      'rm /*[vfstype="xfs"]/opt',

You're bypassing the context here by using an absolute path (starting with/). 
That won't do anything.


      'ins opt after vfstype="xfs"',

This syntax is erroneous. You probably mean to insert the opt node after the 
vfstype node of the matching entry, which would be:

      'ins opt after *[vfstype="xfs"]/vfstype


Raphaƫl

-- 
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/dc7217a1-88d3-4179-8700-d711aa224c1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to