O'Reilly logo

Learning Puppet for Windows Server by Fuat Ulugay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Firewall

First of all, there is no supported or approved module for the Windows Firewall management. We will use puppet/windows_firewall as an example. The link to the module details is https://forge.puppetlabs.com/puppet/windows_firewall. When we use the unsupported modules, the problem is that it may not work as expected. However, we can check the code details and create our own modules accordingly.

Here are some details of this module:

  • When you try to enable the firewall, it does not enable all the profiles. While testing Windows 7, it did not enable the domain profile.
  • When the rule with the same name already exists, it will do nothing. So when you want to change an existing rule, this will not work.
  • When ensure => absent is used, it gives error ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required