salt-formulas / salt-formula-iptables

Other
7 stars 18 forks source link

Fails when IPv6 enabled #18

Open joajansen opened 5 years ago

joajansen commented 5 years ago

How to reproduce: enable both IPv4 and IPv6 in pillar.

Error message:

eboe: Data failed to compile:

Detected conflicting IDs, SLS IDs need to be globally unique.
The conflicting ID is 'netfilter-persistent' and is found in SLS 'base:ipt

ables.v1.v4_service' and SLS 'base:iptables.v1.v6_service' ERROR: Minions returned with non-zero exit code

Cause: duplicate service name in iptables/map.jinja

Ugly workaround: create a symlink like netfilter6-persistent frim the systemd file netfilter-persistent and edit map.jinja accordingly