{{pillar['headers']['salt']['file']}} | |||||
{% set firewalld = pillar.get('firewalld', {}) -%} | {% set firewalld = pillar.get('firewalld', {}) -%} | ||||
# firewalld config file | # firewalld config file | ||||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
{{pillar['headers']['salt']['xml']}} | |||||
<service> | <service> | ||||
{% if 'short' in service %}<short>{{ service.short }}</short>{% else %}<short>{{ name }}</short>{% endif %} | {% if 'short' in service %}<short>{{ service.short }}</short>{% else %}<short>{{ name }}</short>{% endif %} | ||||
{% if 'description' in service %}<description>{{ service.description }}</description>{% endif %} | {% if 'description' in service %}<description>{{ service.description }}</description>{% endif %} |
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
{{pillar['headers']['salt']['xml']}} | |||||
<zone{% if 'target' in zone %} target="{{ zone.target }}"{% endif %}> | <zone{% if 'target' in zone %} target="{{ zone.target }}"{% endif %}> | ||||
{% if 'short' in zone %}<short>{{ zone.short }}</short>{% else %}<short>{{ name }}</short>{% endif %} | {% if 'short' in zone %}<short>{{ zone.short }}</short>{% else %}<short>{{ name }}</short>{% endif %} | ||||
{% if 'description' in zone %}<description>{{ zone.description }}</description>{% endif %} | {% if 'description' in zone %}<description>{{ zone.description }}</description>{% endif %} |