From 44be7b49693c1e21ad60ec95f110cd8dc57d82bc Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Mon, 19 Sep 2022 14:26:16 -0400 Subject: [PATCH] Add NTP --- salt/ntp/chrony.conf | 4 ++-- salt/ntp/init.sls | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/ntp/chrony.conf b/salt/ntp/chrony.conf index 3f9a06d46..46432915f 100644 --- a/salt/ntp/chrony.conf +++ b/salt/ntp/chrony.conf @@ -1,8 +1,8 @@ # NTP server list -{% for SERVER in NTPCONFIG.ntp.servers %} +{%- for SERVER in NTPCONFIG.servers %} server {{ SERVER }} iburst -{% endfor %} +{%- endfor %} # Config options driftfile /var/lib/chrony/drift diff --git a/salt/ntp/init.sls b/salt/ntp/init.sls index 0939b52dd..5f66ac4a7 100644 --- a/salt/ntp/init.sls +++ b/salt/ntp/init.sls @@ -10,7 +10,7 @@ chronyconf: - source: salt://ntp/chrony.conf - template: jinja - defaults: - - NTPCONFIG: {{ NTPCONFIG.ntp }} + NTPCONFIG: {{ NTPCONFIG.ntp }} chronyd: service.running: