paulbsd-salt/states/apparmor/init.sls
Paul Lecuq 24500ff074
Some checks failed
continuous-integration/drone/push Build is failing
updated states (lints) / updated .drone.yml
2022-06-10 00:13:19 +02:00

21 lines
509 B
Plaintext

---
{%- from "apparmor/map.jinja" import apparmor with context %}
{%- if apparmor.enabled is defined and apparmor.enabled %}
{%- for cfg in apparmor.configs %}
apparmor-{{ cfg }}:
file.managed:
- name: "/etc/apparmor.d/{{ cfg }}"
- source: "salt://apparmor/{{ cfg }}.j2"
- user: root
- group: root
- mode: "0644"
- template: jinja
- watch_in:
- service: apparmor-reload
{%- endfor %}
apparmor-reload:
service.running:
- name: apparmor
- enable: true
{%- endif %}