Hello All,

I have a requirement to mount /var with specific options if mysql-server is 
installed and the filesystem is ext4.  So far I have this:

  if defined(Package['mysql55-server']) {
    notice "found mysql server"
    
    augeas { 'fstabvarentry':
      context => '/files/etc/fstab/*[file="/var"][vfstype="ext4"]',
      changes => [
        '', # remove all opt nodes
        'ins opt[1] "defaults"',
        'ins opt[2] "noatime"',
        # etc etc to build 
"defaults,noatime,data=writeback,barrier=0,nobh,errors=remount-ro"
      ],
      onlyif  => 'match /files/etc/fstab/*[file="/var"][vfstype="ext4"]',
    }
  }

Now, my problem is how to deal with all possible opt entries for the /var 
partition.  I want to start off by removing *all* opt nodes then adding the 
ones I need, but I am having trouble finding the syntax on how to remove 
all opt nodes.

How can I write "rm opt*" ?

Thanks!

-- 
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/156ba202-76f4-4d91-8e92-dfed187da948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to