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

41 行
1.0KB

  1. ########################################################################
  2. # File managed by Salt at <{{ source }}>.
  3. # Your changes will be overwritten.
  4. ########################################################################
  5. {%- if chrony.ntpservers is defined %}
  6. {% for server in chrony.ntpservers -%}
  7. {% if server is mapping %}
  8. server {{ server.name }} {{ server.options | default(chrony.options) }}
  9. {% else %}
  10. server {{ server }} {{ chrony.options }}
  11. {% endif %}
  12. {% endfor %}
  13. {%- endif %}
  14. {%- if chrony.pool is defined %}
  15. {% for pool in chrony.pool -%}
  16. {% if pool is mapping %}
  17. pool {{ pool.name }} {{ pool.options | default(chrony.options) }}
  18. {% else %}
  19. pool {{ pool }} {{ chrony.options }}
  20. {% endif %}
  21. {% endfor %}
  22. {% endif %}
  23. keyfile {{ chrony.keyfile }}
  24. driftfile {{ chrony.driftfile }}
  25. {% if chrony.allow is defined %}
  26. {% for allowed in chrony.get('allow', {}) -%}
  27. allow {{ allowed }}
  28. {% endfor %}
  29. {%- endif %}
  30. logdir {{ chrony.logdir }}
  31. {% for param in chrony.get('otherparams', {}) -%}
  32. {{ param }}
  33. {% endfor %}