Saltstack Official UFW Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 satır
443B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- from tplroot ~ "/map.jinja" import ufw with context %}
  6. {%- if ufw.get('enabled', False) %}
  7. {%- set loglevel = ufw.get('settings:loglevel', 'low') %}
  8. enable-ufw:
  9. ufw.enabled
  10. set-logging:
  11. cmd.run:
  12. - name: ufw logging {{ loglevel }}
  13. - unless: "grep 'LOGLEVEL={{ loglevel }}' /etc/ufw/ufw.conf"
  14. {%- endif %}