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.

9 年之前
9 年之前
123456789101112131415
  1. {% set service = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'pkgs': ['iptables','netfilter-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'))) %}