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

12345678910111213141516171819202122232425
  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled and grains.get('init', None) == 'systemd' %}
  3. {%- if system.systemd.journal is defined %}
  4. linux_systemd_journal_config:
  5. file.managed:
  6. - name: /etc/systemd/journald.conf.d/90-salt.conf
  7. - source: salt://linux/files/journal.conf
  8. - template: jinja
  9. - makedirs: True
  10. - defaults:
  11. settings: {{ system.systemd.journal|tojson }}
  12. - watch_in:
  13. - module: linux_journal_systemd_reload
  14. linux_journal_systemd_reload:
  15. module.wait:
  16. - name: service.restart
  17. - m_name: systemd-journald
  18. - require:
  19. - module: service.systemctl_reload
  20. {%- endif %}
  21. {%- endif %}