diff --git a/roles/base/defaults/main.yml b/roles/base/defaults/main.yml index 2611d01..0d143f1 100644 --- a/roles/base/defaults/main.yml +++ b/roles/base/defaults/main.yml @@ -12,6 +12,10 @@ recursive_dns_servers: recursive_dns_search_domains: - "{{ local_domain }}" +ntp_servers: + - time.nrc.ca + - time.chu.nrc.ca + grub_cmdline: "console=tty0 console=ttyS{{ grub.serial_console[cluster_hardware].console }},115200 plymouth.ignore-serial-consoles splash" grub_serial: "serial --unit={{ grub.serial_console[cluster_hardware].console }} --speed=115200" diff --git a/roles/base/templates/etc/ntp.conf.j2 b/roles/base/templates/etc/ntp.conf.j2 index 638c6bc..a843cae 100644 --- a/roles/base/templates/etc/ntp.conf.j2 +++ b/roles/base/templates/etc/ntp.conf.j2 @@ -16,9 +16,10 @@ tos orphan 6 server 127.0.0.1 fudge 127.0.0.1 stratum 10 -# NRC public NTP masters -server time.nrc.ca iburst -server time.chu.nrc.ca iburst +# NTP masters +{% for server in ntp_servers %} +server {{ server }} iburst +{% endfor %} # Local PVC cluster {% for host in groups[cluster_group] %}