Support time synchronization on hosts
[oom/offline-installer.git] / ansible / roles / chrony / defaults / main.yml
1 ---
2 timesync: {}
3 chrony:
4   servers: "{{ timesync.servers | default([hostvars[groups.infrastructure[0]].cluster_ip]) }}" # chronyd's NTP servers
5   slewclock: "{{ timesync.slewclock | default(false) }}" # chronyd's makestep property
6   timezone: "{{ timesync.timezone | default('Universal') }}" # Timezone name according to tz database
7   makestep: '1 -1'
8   maxjitter: 10 # Max allowed jitter if using infra as time source as it may by unstable due to pretending stratum 1 time source
9   initstepslew: 30
10   conf:
11     RedHat:
12       config_file: /etc/chrony.conf
13       driftfile: /var/lib/chrony/drift
14     Debian:
15       config_file: /etc/chrony/chrony.conf
16       driftfile: /var/lib/chrony/chrony.drift