Saltstack Official FirewallD Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
1.0KB

  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. {%- endif %}
  31. {%- if 'entries' in ipset %}
  32. {%- for v in ipset.entries %}
  33. <entry>{{ v }}</entry>
  34. {%- endfor %}
  35. {%- endif %}
  36. </ipset>