I also would. I was also thinking of making a native windows firewall module/provider in my copious free time (sarcasm). If the registry version of controlling firewall rules works fine though, that would probably be the fastest and easiest way I can think of.
On Tuesday, March 5, 2013 9:36:15 AM UTC-5, david....@struq.com wrote: > > Hi Adam, > > I would be interested in seeing an example of a firewall config managed by > the registry module. Is that possible? > > Thanks, > David. > > On Friday, February 15, 2013 5:13:04 AM UTC, ad wrote: > >> Hey Jim, >> >> As someone who generally hates using execs unless I absolutely have to, I >> would recommend using the Puppet Labs registry module. I can dig out some >> examples tomorrow if you like. >> >> Adam >> >> On Thursday, February 14, 2013 9:29:52 AM UTC-6, jim wrote: >>> >>> Hello all, >>> >>> I'm currently running 2.7.19 (Puppet Enterprise 2.7.0) >>> >>> I want to use puppet to add / amend or delete windows firewall rules, is >>> there a tidy way of doing this ???? >>> >>> exec { "Check_MK_Firewall_Rule_create": >>> command => 'C:\Windows\System32\netsh.exe advfirewall firewall add rule >>> name="Check_MK" dir=in action=allow protocol=TCP localport=6556', >>> unless => 'C:\Windows\System32\netsh.exe advfirewall firewall show rule >>> name="Check_MK"', >>> } >>> >>> ## If I remove the unless statement, it will keep add the same rule over >>> and over again, which will make the firewall rule list un-manageable >>> >>> >>> exec { "Check_MK_Firewall_Rule_enable": >>> command => 'C:\Windows\System32\netsh.exe advfirewall firewall set rule >>> name="Check_MK" new enable=Yes', >>> } >>> >>> ## When I do a puppet run it keeps running this, is there a way to only >>> run if disabled ??? >>> >>> Hope this make sense >>> >>> regards >>> >>> James >>> >>> -- _____________________________________________________ This email and any files transmitted with it are confidential and intended solely for the addressee. If you received this email in error, please do not disclose the contents to anyone; kindly notify the sender by return email and delete this email and any attachments from your system. © 2011 Currensee Inc. is a member of the National Futures Association (NFA) Member ID 0403251 | Over the counter retail foreign currency (Forex) trading may involve significant risk of loss. It is not suitable for all investors and you should make sure you understand the risks involved before trading and seek independent advice if necessary. Performance, strategies and charts shown are not necessarily predictive of any particular result and past performance is no indication of future results. Investor returns may vary from Trade Leader returns based on slippage, fees, broker spreads, volatility or other market conditions. Currensee Inc | 54 Canal St 4th Floor | Boston, MA 02114 | +1.617.624.3824 -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.