|
|
|
|
|
|
|
|
{% set service = salt['grains.filter_by']({ |
|
|
{% set service = salt['grains.filter_by']({ |
|
|
'Debian': { |
|
|
'Debian': { |
|
|
'pkgs': ['iptables','iptables-persistent' ], |
|
|
'pkgs': ['iptables','iptables-persistent' ], |
|
|
'service': 'iptables-persistent', |
|
|
|
|
|
|
|
|
'service': 'netfilter-persistent', |
|
|
}, |
|
|
}, |
|
|
'RedHat': { |
|
|
'RedHat': { |
|
|
'pkgs': ['iptables'], |
|
|
'pkgs': ['iptables'], |
|
|
'service': 'iptables', |
|
|
'service': 'iptables', |
|
|
}, |
|
|
}, |
|
|
}, merge=salt['pillar.get']('iptables:service')) %} |
|
|
|
|
|
|
|
|
}, merge=salt['grains.filter_by']({ |
|
|
|
|
|
'trusty': { |
|
|
|
|
|
'service': 'iptables-persistent', |
|
|
|
|
|
}, |
|
|
|
|
|
}, grain='oscodename', merge=salt['pillar.get']('iptables:service'))) %} |