blob: 62d45315df0b41fec3fec18bfd293e5e56b8e2e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
### Global options
cmdport 0
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift
logdir /var/log/chrony
maxupdateskew 100.0
rtcsync
makestep 1 3
{% if chrony_hwtimestamp_interfaces is defined %}
{% for interface in chrony_hwtimestamp_interfaces %}
hwtimestamp {{ interface.name }}{% if 'options' in interface %} {{ interface.options }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
### Sources
{% if chrony_source_servers is defined %}
{% for server in chrony_source_servers %}
server {{ server.name }}{% if 'options' in server %} {{ server.options }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
{% if chrony_source_pools is defined %}
{% for pool in chrony_source_pools %}
pool {{ pool.name }}{% if 'options' in pool %} {{ pool.options }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
{% if chrony_source_peers is defined %}
{% for peer in chrony_source_peers %}
peer {{ peer.name }}{% if 'options' in peer %} {{ peer.options }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
{% if chrony_server is defined %}
### Server
{% for rule in chrony_server.allow | default([]) %}
allow {{ rule }}
{% endfor %}
{% for rule in chrony_server.deny | default([]) %}
deny {{ rule }}
{% endfor %}
{% if 'bindaddress' in chrony_server %}
bindaddress {{ chrony_server.bind }}
{% endif %}
{% if 'port' in chrony_server %}
port {{ chrony_server.port }}
{% endif %}
{% endif %}
|