Add AppArmor profile

Simple profile to allow for management of local profile drop-ins using
pillar values.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-02-12 16:20:44 +01:00
parent 91089d5d98
commit 0eca62f4ce
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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 %}