On 6/13/2012 4:33 AM, Michael Knox wrote:
Hi,
I use an augeas resource that manages the FW_CONFIGURATIONS_$zone entry in 
etc/sysconfig/SuSEfirewall2.

     augeas {"fwservice_${svc}-$zone":
       context   => "/files/etc/sysconfig/SuSEfirewall2",
       onlyif    => "match FW_CONFIGURATIONS_$zone/value[.='$svc'] size == 0",
       changes   => [
                   "set FW_CONFIGURATIONS_$zone/value[.='$svc'] $svc",
       ],
       load_path => "$augeas::params::lense_path",
       require   => Augeas::Lense['shellvars_list.aug'],
       notify    => Service["firewall"],
     }

This is perfect. Thanks!

Mike

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to