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.

25 rindas
677B

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