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.

23 lines
476B

  1. {%- set config = salt['pillar.get']('chrony:config', {}) -%}
  2. # This file is managed by salt
  3. {% for server in config.ntpservers -%}
  4. server {{ server }} {{ config.options }}
  5. {% endfor %}
  6. keyfile {{ config.keyfile }}
  7. driftfile {{ config.keyfile }}
  8. {% if config.allow is defined %}
  9. {% for allowed in config.get('allow', []) -%}
  10. allow {{ allowed }}
  11. {% endfor %}
  12. {% endif %}
  13. logdir {{ config.logdir }}
  14. {% for param in config.get('miscparams', []) -%}
  15. {{ param }}
  16. {% endfor %}