{%- set sls_reload_service = tplroot ~ '.service.reload' %} | {%- set sls_reload_service = tplroot ~ '.service.reload' %} | ||||
{%- from tplroot ~ "/map.jinja" import ufw with context %} | {%- from tplroot ~ "/map.jinja" import ufw with context %} | ||||
{%- set enabled = ufw.get('enabled', False) %} | |||||
include: | include: | ||||
- {{ sls_package_install }} | - {{ sls_package_install }} | ||||
- {{ sls_enable_service }} | - {{ sls_enable_service }} | ||||
{%- if comment is not none and salt['grains.get']('osfinger') != 'Debian-8' and salt['grains.get']('osfinger') != 'CentOS-6' %} | {%- if comment is not none and salt['grains.get']('osfinger') != 'Debian-8' and salt['grains.get']('osfinger') != 'CentOS-6' %} | ||||
- comment: '"{{ comment }}"' | - comment: '"{{ comment }}"' | ||||
{%- endif %} | {%- endif %} | ||||
{%- if enabled %} | |||||
- listen_in: | - listen_in: | ||||
- cmd: reload-ufw | - cmd: reload-ufw | ||||
{%- endif %} | |||||
{%- endfor %} | {%- endfor %} | ||||
{%- endfor %} | {%- endfor %} |
{%- set sls_reload_service = tplroot ~ '.service.reload' %} | {%- set sls_reload_service = tplroot ~ '.service.reload' %} | ||||
{%- from tplroot ~ "/map.jinja" import ufw with context %} | {%- from tplroot ~ "/map.jinja" import ufw with context %} | ||||
{%- set enabled = ufw.get('enabled', False) %} | |||||
include: | include: | ||||
- {{ sls_package_install }} | - {{ sls_package_install }} | ||||
- {{ sls_enable_service }} | - {{ sls_enable_service }} | ||||
{%- if comment is not none %} | {%- if comment is not none %} | ||||
- comment: '"{{ comment }}"' | - comment: '"{{ comment }}"' | ||||
{%- endif %} | {%- endif %} | ||||
{%- if enabled %} | |||||
- listen_in: | - listen_in: | ||||
- cmd: reload-ufw | - cmd: reload-ufw | ||||
{%- endif %} | |||||
{%- endfor %} | {%- endfor %} |
{%- set sls_reload_service = tplroot ~ '.service.reload' %} | {%- set sls_reload_service = tplroot ~ '.service.reload' %} | ||||
{%- from tplroot ~ "/map.jinja" import ufw with context %} | {%- from tplroot ~ "/map.jinja" import ufw with context %} | ||||
{%- set enabled = ufw.get('enabled', False) %} | |||||
include: | include: | ||||
- {{ sls_package_install }} | - {{ sls_package_install }} | ||||
- {{ sls_enable_service }} | - {{ sls_enable_service }} | ||||
{%- if comment is not none %} | {%- if comment is not none %} | ||||
- comment: '"{{ comment }}"' | - comment: '"{{ comment }}"' | ||||
{%- endif %} | {%- endif %} | ||||
{%- if enabled %} | |||||
- listen_in: | - listen_in: | ||||
- cmd: reload-ufw | - cmd: reload-ufw | ||||
{%- endif %} | |||||
{%- endfor %} | {%- endfor %} |
{%- set sls_reload_service = tplroot ~ '.service.reload' %} | {%- set sls_reload_service = tplroot ~ '.service.reload' %} | ||||
{%- from tplroot ~ "/map.jinja" import ufw with context %} | {%- from tplroot ~ "/map.jinja" import ufw with context %} | ||||
{%- set enabled = ufw.get('enabled', False) %} | |||||
include: | include: | ||||
- {{ sls_package_install }} | - {{ sls_package_install }} | ||||
- {{ sls_enable_service }} | - {{ sls_enable_service }} | ||||
- comment: '"{{ comment }}"' | - comment: '"{{ comment }}"' | ||||
{%- endif %} | {%- endif %} | ||||
- to_port: "{{ to_port }}" | - to_port: "{{ to_port }}" | ||||
{%- if enabled %} | |||||
- listen_in: | - listen_in: | ||||
- cmd: reload-ufw | - cmd: reload-ufw | ||||
{%- endif %} | |||||
{%- endfor %} | {%- endfor %} | ||||
{%- endfor %} | {%- endfor %} |