Saltstack Official FirewallD Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

service.xml 1.0KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="utf-8"?>
  2. {{pillar['headers']['salt']['xml']}}
  3. <service>
  4. {% if 'short' in service %}<short>{{ service.short }}</short>{% else %}<short>{{ name }}</short>{% endif %}
  5. {% if 'description' in service %}<description>{{ service.description }}</description>{% endif %}
  6. {% if 'ports' in service %}
  7. {% if 'tcp' in service.ports %}
  8. {% for v in service.ports.tcp %}<port port="{{ v }}" protocol="tcp" />{% endfor %}
  9. {% endif %}
  10. {% if 'udp' in service.ports %}
  11. {% for v in service.ports.udp %}<port port="{{ v }}" protocol="udp" />{% endfor %}
  12. {% endif %}
  13. {% if 'modules' in service %}
  14. {% for v in service.modules %}<module name="{{ v }}" />{% endfor %}
  15. {% endif %}
  16. {% endif %}
  17. {% if 'destinations' in service %}
  18. {% if 'ipv4' in service.destinations %}
  19. {% for v in service.destinations.ipv4 %}<destination ipv4="{{ v }}" />{% endfor %}
  20. {% endif %}
  21. {% if 'ipv6' in service.destinations %}
  22. {% for v in service.destinations.ipv6 %}<destination ipv6="{{ v }}" />{% endfor %}
  23. {% endif %}
  24. {% endif %}
  25. </service>