Saltstack Official IPTables Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

init.sls 713B

il y a 9 ans
123456789101112131415161718192021
  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 %}