Saltstack Official Linux Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {%- from "linux/map.jinja" import system with context %}
-
- include:
- - linux.system.package
-
- {%- if system.apparmor.enabled %}
-
- apparmor_service:
- service.running:
- - name: apparmor
- - enable: true
- - require:
- - pkg: linux_packages
-
- {%- else %}
-
- apparmor_service_disable:
- service.dead:
- - name: apparmor
- - enable: false
-
- apparmor_teardown:
- cmd.wait:
- - name: /etc/init.d/apparmor teardown
- - watch:
- - service: apparmor_service_disable
-
- {%- endif %}
|