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

123456789101112131415161718192021
  1. {% from "chrony/map.jinja" import chrony with context %}
  2. chrony:
  3. pkg.installed:
  4. - name: {{ chrony.package }}
  5. service.running:
  6. - enable: True
  7. - name: {{ chrony.service }}
  8. - require:
  9. - pkg: {{ chrony.package }}
  10. chrony_config:
  11. file.managed:
  12. - name: {{ chrony.config }}
  13. - source: {{ chrony.config_src }}
  14. - template: jinja
  15. - user: root
  16. - mode: 644
  17. - watch_in:
  18. - service: {{ chrony.service }}