summaryrefslogtreecommitdiffstats
path: root/salt/profile/apparmor/local.sls
blob: 6dbdff3a406be1a863c1f095b07937f52de97ce8 (plain)
1
2
3
4
5
6
7
8
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 %}