瀏覽代碼

Merge 1cb141c796 into 710c1004d8

pull/38/merge
ze42 2 年之前
父節點
當前提交
026a6bd0a7
No account linked to committer's email address
共有 1 個文件被更改,包括 19 次插入17 次删除
  1. +19
    -17
      chrony/files/default/chrony.conf.jinja

+ 19
- 17
chrony/files/default/chrony.conf.jinja 查看文件

@@ -3,38 +3,40 @@
# Your changes will be overwritten.
########################################################################

{%- if chrony.ntpservers is defined %}
{% for server in chrony.ntpservers -%}
{% if server is mapping %}
{%- if chrony.ntpservers is defined and chrony.ntpservers %}
{% for server in chrony.ntpservers %}
{%- if server is mapping %}
server {{ server.name }} {{ server.options | default(chrony.options) }}
{% else %}
{%- else %}
server {{ server }} {{ chrony.options }}
{% endif %}
{% endfor %}
{%- endif %}
{%- endfor %}
{%- endif %}

{%- if chrony.pool is defined %}
{% for pool in chrony.pool -%}
{% if pool is mapping %}
{% for pool in chrony.pool %}
{%- if pool is mapping %}
pool {{ pool.name }} {{ pool.options | default(chrony.options) }}
{% else %}
{%- else %}
pool {{ pool }} {{ chrony.options }}
{% endif %}
{% endfor %}
{% endif %}
{%- endif %}
{%- endfor %}
{%- endif %}

keyfile {{ chrony.keyfile }}

driftfile {{ chrony.driftfile }}

{% if chrony.allow is defined %}
{% for allowed in chrony.get('allow', {}) -%}
{%- if chrony.allow is defined %}
{% for allowed in chrony.get('allow', {}) %}
allow {{ allowed }}
{% endfor %}
{%- endfor %}
{%- endif %}

logdir {{ chrony.logdir }}

{% for param in chrony.get('otherparams', {}) -%}
{%- if chrony.get('otherparams', {}) %}
{% for param in chrony.get('otherparams', {}) %}
{{ param }}
{% endfor %}
{%- endfor %}
{%- endif %}

Loading…
取消
儲存