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.

33 satır
591B

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