Saltstack Official IPTables Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

22 lines
713B

  1. {%- from "iptables/map.jinja" import schema with context %}
  2. {%- set include_allowed = true %}
  3. {%- if grains.get('virtual_subtype', None) in ['Docker', 'LXC'] %}
  4. {%- set include_allowed = false %}
  5. echo_usupported_environment:
  6. cmd.run:
  7. - name: echo "You are trying to use iptables inside of docker or lxc. Kernel modules loading are not supported here"
  8. {%- endif %}
  9. {%- if pillar.iptables.service.enabled is defined %}
  10. {%- set include_allowed = false %}
  11. echo_usupported_pillars_schema:
  12. cmd.run:
  13. - name: echo "You are trying to use old style pillars schema. Please update pillars according to the current schema"
  14. {%- endif %}
  15. {%- if include_allowed %}
  16. include:
  17. - iptables.v{{ schema.epoch }}
  18. {%- endif %}