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.

29 lines
468B

  1. {%- from "linux/map.jinja" import system with context %}
  2. include:
  3. - linux.system.package
  4. {%- if system.apparmor.enabled %}
  5. apparmor_service:
  6. service.running:
  7. - name: apparmor
  8. - enable: true
  9. - require:
  10. - pkg: linux_packages
  11. {%- else %}
  12. apparmor_service_disable:
  13. service.dead:
  14. - name: apparmor
  15. - enable: false
  16. apparmor_teardown:
  17. cmd.wait:
  18. - name: /etc/init.d/apparmor teardown
  19. - watch:
  20. - service: apparmor_service_disable
  21. {%- endif %}