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 567B

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