puppet-windows_firewall cant delete default windows firewall rules

asked 2016-02-11 23:12:46 -0600

sype gravatar image

In my yaml file below, this should be deleting a default windows firewall rule.

  'File and Printer Sharing (Echo Request - ICMPv6-In)':
    ensure: 'absent'
    protocol: 'ICMPv6'
    display_name: 'File and Printer Sharing (Echo Request - ICMPv6-In)'
    description: 'Echo Request messages are sent as ping requests to other nodes.'

This is the error I get when I execute the puppet file on the node.

> /Stage[main]/Main/Windows_firewall::Exception[File and Printer Sharing (Echo Request - ICMPv6-In)]/Exec[set rule File and Printer Sharing (Echo Request - ICMPv6-In)]/returns: change from notrun to 0 failed: C:\Windows\System32\netsh.exe advfirewall firewall delete rule name="File and Printer Sharing (Echo Request - ICMPv6-In)" dir= protocol=ICMPv6 remoteip="" returned 1 instead of one of [0]

I can remove custom created firewall rules. I can add custom created firewall rules.

My current module version: github.com

edit retag flag offensive close merge delete