Saltstack Official FirewallD Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

42 lines
1.2KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This file is managed/generated by salt.
  4. Do not edit this file manually, it will be overwritten!
  5. Modify the salt pillar for firewalld instead
  6. -->
  7. <ipset{%- if 'type' in ipset %} type="{{ ipset.type }}" {%- endif %}>
  8. {%- if 'short' in ipset %}
  9. <short>{{ ipset.short }}</short>
  10. {%- endif %}
  11. {%- if 'description' in ipset %}
  12. <description>{{ ipset.description }}</description>
  13. {%- endif %}
  14. {%- if 'options' in ipset %}
  15. {%- if 'maxelem' in ipset.options %}
  16. {%- for v in ipset.options.maxelem %}
  17. <option name="maxelem" value="{{ v }}"/>
  18. {%- endfor %}
  19. {%- endif %}
  20. {%- if 'timeout' in ipset.options %}
  21. {%- for v in ipset.options.timeout %}
  22. <option name="timeout" value="{{ v }}"/>
  23. {%- endfor %}
  24. {%- endif %}
  25. {%- if 'hashsize' in ipset.options %}
  26. {%- for v in ipset.options.hashsize %}
  27. <option name="hashsize" value="{{ v }}"/>
  28. {%- endfor %}
  29. {%- endif %}
  30. {%- if 'family' in ipset.options %}
  31. {%- for v in ipset.options.family %}
  32. <option name="family" value="{{ v }}"/>
  33. {%- endfor %}
  34. {%- endif %}
  35. {%- endif %}
  36. {%- if 'entries' in ipset %}
  37. {%- for v in ipset.entries %}
  38. <entry>{{ v }}</entry>
  39. {%- endfor %}
  40. {%- endif %}
  41. </ipset>