Sounds interesting. As far as I've seen, the puppetlabs-firewall resource 
activates instantly. I've not tried to have them all write out to a file 
and trigger an exec iptables-restore. 

If the firewall resource kicks the only way I think it can, then we had an 
issue of firewall ordering. While rules are defined as "100 open port" and 
"999 drop all" the numbering did not seem to make any difference. We ended 
up in situations where the drop rules would kick before the allow 
established rules, and thus kill the puppet run. Our workaround was to run 
our base open ports rules in a pre stage, normal service stuff in main, and 
the drop in post.

If you have any recommendations for a better way to handle the fireall, I'd 
love to hear about it.



On Saturday, March 10, 2012 1:11:02 AM UTC-6, tujwww wrote:
>
> Looks like you are applying the rules in Pre, Main and Post stage using 
> firewall, i wonder what could be the requirement to apply the rules in 
> different stages instead of creating a File resource, Service notify 
> trigger using Exec iptables-restore, if you don't mind giving a little 
> elaboration. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/_GIF40iCIRYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to