diff options
Diffstat (limited to 'salt')
-rw-r--r-- | salt/profile/apparmor/local.sls | 9 | ||||
-rw-r--r-- | salt/role/web-proxy.sls | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/salt/profile/apparmor/local.sls b/salt/profile/apparmor/local.sls new file mode 100644 index 0000000..6dbdff3 --- /dev/null +++ b/salt/profile/apparmor/local.sls @@ -0,0 +1,9 @@ +{%- set aapillar = salt['pillar.get']('profile:apparmor') %} + +{%- if 'local' in aapillar %} +{%- for profile, lines in aapillar['local'].items() %} +/etc/apparmor.d/local/{{ profile }}: + file.managed: + - contents: {{ lines }} +{%- endfor %} +{%- endif %} diff --git a/salt/role/web-proxy.sls b/salt/role/web-proxy.sls index 81f2293..649c69e 100644 --- a/salt/role/web-proxy.sls +++ b/salt/role/web-proxy.sls @@ -1,5 +1,6 @@ include: - nginx.pkg + - profile.apparmor.local - nginx.config - nginx.snippets - nginx.servers |