Saltstack Official IPTables Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

map.jinja 422B

9 jaren geleden
9 jaren geleden
123456789101112131415
  1. {% set service = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'pkgs': ['iptables','iptables-persistent' ],
  4. 'service': 'netfilter-persistent',
  5. },
  6. 'RedHat': {
  7. 'pkgs': ['iptables'],
  8. 'service': 'iptables',
  9. },
  10. }, merge=salt['grains.filter_by']({
  11. 'trusty': {
  12. 'service': 'iptables-persistent',
  13. },
  14. }, grain='oscodename', merge=salt['pillar.get']('iptables:service'))) %}