From 5efe38c72b49c1694e4c41e94b41c32c6d52dbe7 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 9 Jul 2016 20:28:41 +0200 Subject: Localize the NTP pool hostnames. --- roles/common/templates/etc/ntp.conf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'roles') 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 %} -- cgit v1.2.3