Browse Source

Added support for other OS naming schemes

tags/v0.2.0
Mark Gomersbach 7 years ago
parent
commit
6fdd5c2cff
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ufw/init.sls

+ 2
- 1
ufw/init.sls View File

# UFW management module # UFW management module
{%- set ufw = pillar.get('ufw', {}) %} {%- set ufw = pillar.get('ufw', {}) %}
{%- if ufw.get('enabled', False) %} {%- if ufw.get('enabled', False) %}
{% from "ufw/map.jinja" import ufwmap with context %}
{% set default_template = ufw.get('default_template', 'salt://ufw/templates/default.jinja') -%} {% set default_template = ufw.get('default_template', 'salt://ufw/templates/default.jinja') -%}
{% set sysctl_template = ufw.get('sysctl_template', 'salt://ufw/templates/sysctl.jinja') -%} {% set sysctl_template = ufw.get('sysctl_template', 'salt://ufw/templates/sysctl.jinja') -%}


ufw: ufw:
pkg.installed: pkg.installed:
- name: ufw
- name: {{ ufwmap.pkg }}
service.running: service.running:
- enable: True - enable: True
- watch: - watch:

Loading…
Cancel
Save