Browse Source

...and pillar file

tags/v0.2.0
Mark Gomersbach 7 years ago
parent
commit
c981c52535
2 changed files with 19 additions and 0 deletions
  1. +2
    -0
      ufw/defaults.yaml
  2. +17
    -0
      ufw/map.jinja

+ 2
- 0
ufw/defaults.yaml View File

@@ -0,0 +1,2 @@
ufwmap:
pkg: ufw

+ 17
- 0
ufw/map.jinja View File

@@ -0,0 +1,17 @@
{% import_yaml 'ufw/defaults.yaml' as default_settings %}

{% set os_family_map = salt['grains.filter_by']({
'Gentoo': {
'pkg': 'net-firewall/ufw',
},
},
grain="os_family",
merge=salt['pillar.get']('ufw:lookup')) or {}
%}

{% set ufwmap = salt['grains.filter_by'](
default_settings,
merge=os_family_map,
base='ufwmap',
)
%}

Loading…
Cancel
Save