puppet-windows_firewall icon indicating copy to clipboard operation
puppet-windows_firewall copied to clipboard

Make it possible to update Firewall Rules

Open MaikelBornSentia opened this issue 2 years ago • 3 comments

The rulle is as following:

Before class role_*****_pw::firewallrules { windows_firewall::exception{'Puppet Allow Remote Desktop ***** TCP-In': ensure => present, direction => 'in', action => 'allow', enabled => true, protocol => 'TCP', local_port => '3389', remote_port => 'any', remote_ip => '"x.x.x.x","y.y.y.y"', display_name => 'Puppet Allow Remote Desktop - TCP-In', description => '**** Allow Remote Desktop - TCP-In', }

After class role_*****_pw::firewallrules { windows_firewall::exception{'Puppet Allow Remote Desktop ***** TCP-In': ensure => present, direction => 'in', action => 'allow', enabled => true, protocol => 'TCP', local_port => '3389', remote_port => 'any', remote_ip => '"x.x.x.x","y.y.y.y","z.z.z.z"', display_name => 'Puppet Allow Remote Desktop - TCP-In', description => '**** Allow Remote Desktop - TCP-In', }

How to reproduce (e.g Puppet code you use)

Create a firewall rule then add another IP after adding it

What are you seeing

When we delete the rule from the server and run puppet this is working however when we add another IP to the rule in puppet the firewall rule doesnt get update after a puppet run.

What behaviour did you expect instead

We expect the rule to be update after a puppet run if we have changes in them.

Any additional information you'd like to impart

Feel free to contact me to explain this some more.

MaikelBornSentia avatar Nov 24 '22 11:11 MaikelBornSentia