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.

20 lines
567B

  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'))) %}