http://forge.puppetlabs.com/puppetlabs/firewall
I am trying to have Puppet flush iptables before it applies firewall
rules. I tried the following:
exec { 'clear-firewall':
command => '/sbin/iptables -F',
refreshonly => true,
}
Firewall {
subscribe => Exec['clear-firewall'],
notify => Exec['persist-firewall'],
}
So far, it has not worked. Can anyone suggest or know of another
method I should try?
Are you trying to remove all rules that are not configured with puppet?
In which case the following will do but I'm not positive that is you want?
resources { 'firewall':
purge => true
}
--
Steve Traylen
On Nov 28, 12:18 pm, Steve Traylen <steve.tray...@cern.ch> wrote: