Saltstack Official Chrony 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.

chrony.conf.jinja 1.0KB

5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
5 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940
  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 %}