Browse Source

Cleaning

tags/v0.2.0
Alexandre Anriot 6 years ago
parent
commit
14fe79bf14
2 changed files with 0 additions and 3 deletions
  1. +0
    -2
      _modules/ufw.py
  2. +0
    -1
      ufw/init.sls

+ 0
- 2
_modules/ufw.py View File

@@ -25,9 +25,7 @@ def set_enabled(enabled):
cmd = 'ufw --force enable' if enabled else 'ufw disable'
__salt__['cmd.run'](cmd)


def add_rule(rule):
cmd = "ufw " + rule
out = __salt__['cmd.run'](cmd, python_shell=True)
# __salt__['cmd.run']("ufw reload") # why reload after adding a rule? :/
return out

+ 0
- 1
ufw/init.sls View File

@@ -154,7 +154,6 @@ disable-logging:
- name: ufw logging off
- unless: "grep 'LOGLEVEL=off' /etc/ufw/ufw.conf"


{% else %}
#ufw:
#ufw:

Loading…
Cancel
Save