Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
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 %}