Saltstack Official Linux Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132
  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. {%- if system.get('mcelog',{}).get('enabled', False) %}
  4. mcelog_packages:
  5. pkg.installed:
  6. - name: mcelog
  7. mcelog_conf:
  8. file.managed:
  9. - name: /etc/mcelog/mcelog.conf
  10. - source: salt://linux/files/mcelog.conf
  11. - template: jinja
  12. - user: root
  13. - group: root
  14. - mode: 644
  15. - require:
  16. - pkg: mcelog_packages
  17. mce_service:
  18. service.running:
  19. - name: mcelog
  20. - enable: true
  21. - require:
  22. - pkg: mcelog_packages
  23. - watch:
  24. - file: mcelog_conf
  25. {%- endif %}
  26. {%- endif %}