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:
ensure => absentis used, it gives error ...