diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-07-09 20:28:41 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-07-09 20:28:41 +0200 |
commit | 5efe38c72b49c1694e4c41e94b41c32c6d52dbe7 (patch) | |
tree | 436bcccb29c8a2911a2aa11de5ee6578847080ea /roles | |
parent | afcb9bd615b27f9976dcbbcc5873dce85f7fbbd5 (diff) |
Localize the NTP pool hostnames.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/common/templates/etc/ntp.conf.j2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/common/templates/etc/ntp.conf.j2 b/roles/common/templates/etc/ntp.conf.j2 index 5957276..2022a4b 100644 --- a/roles/common/templates/etc/ntp.conf.j2 +++ b/roles/common/templates/etc/ntp.conf.j2 @@ -27,8 +27,10 @@ server ntp2.sth.netnod.se iburst {% for host in groups['NTP-master'] | sort %} server {{ ipsec[ hostvars[host].inventory_hostname_short ] }} prefer iburst {% endfor %} -server 0.se.pool.ntp.org iburst -server 1.se.pool.ntp.org iburst +server 0.{{ geoip | default('debian') }}.pool.ntp.org iburst +server 1.{{ geoip | default('debian') }}.pool.ntp.org iburst +server 2.{{ geoip | default('debian') }}.pool.ntp.org iburst +server 3.{{ geoip | default('debian') }}.pool.ntp.org iburst {% endif %} |