|
- {%- set config = salt['pillar.get']('chrony:config', {}) -%}
-
- # This file is managed by salt
- {% for server in config.ntpservers -%}
- server {{ server }} {{ config.options }}
- {% endfor %}
-
- keyfile {{ config.keyfile }}
-
- driftfile {{ config.keyfile }}
-
- {% if config.allow is defined %}
- {% for allowed in config.get('allow', []) -%}
- allow {{ allowed }}
- {% endfor %}
- {% endif %}
-
- logdir {{ config.logdir }}
-
- {% for param in config.get('miscparams', []) -%}
- {{ param }}
- {% endfor %}
|