From ad0b75e870f43af906580187c13886caccef2a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Mon, 24 Jan 2022 11:13:45 +0100 Subject: [PATCH] Fix indentation error chrony.conf dhcpv6-relay.yaml The CloudConfig write_files entry fro chrony.conf is a nested list, instead of an entry. The file does not get written. Change-Id: I5ff6b81c6aaf454fad93e7c2fe2ff5ac68b91261 --- templates/dhcpv6-relay.yaml | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/templates/dhcpv6-relay.yaml b/templates/dhcpv6-relay.yaml index 4768103..60bb64b 100644 --- a/templates/dhcpv6-relay.yaml +++ b/templates/dhcpv6-relay.yaml @@ -221,33 +221,33 @@ resources: net.ipv6.conf.eth2.forwarding = 1 net.ipv6.conf.eth3.forwarding = 1 net.ipv6.conf.all.forwarding = 1 - - - path: /etc/chrony.conf - content: - str_replace: - template: | - pool $ntp_pool iburst - # Record the rate at which the system clock gains/losses time. - driftfile /var/lib/chrony/drift - # Allow the system clock to be stepped in the first three updates - # if its offset is larger than 1 second. - makestep 1.0 3 - # Allow NTP client access from provision network. - allow $provision_cidr - allow $provision2_cidr - allow $provision3_cidr - # Serve time even if not synchronized to a time source. - local stratum 10 - # Specify file containing keys for NTP authentication. - keyfile /etc/chrony.keys - # Get TAI-UTC offset and leap seconds from the system tz database. - leapsectz right/UTC - # Specify directory for log files. - logdir /var/log/chrony - params: - $ntp_pool: {get_param: NtpPool} - $provision_cidr: {get_param: provision_net_cidr} - $provision2_cidr: {get_param: provision_net2_cidr} - $provision3_cidr: {get_param: provision_net3_cidr} + - path: /etc/chrony.conf + content: + str_replace: + template: | + pool $ntp_pool iburst + # Record the rate at which the system clock gains/losses time. + driftfile /var/lib/chrony/drift + # Allow the system clock to be stepped in the first three updates + # if its offset is larger than 1 second. + makestep 1.0 3 + # Allow NTP client access from provision network. + allow $provision_cidr + allow $provision2_cidr + allow $provision3_cidr + # Serve time even if not synchronized to a time source. + local stratum 10 + # Specify file containing keys for NTP authentication. + keyfile /etc/chrony.keys + # Get TAI-UTC offset and leap seconds from the system tz database. + leapsectz right/UTC + # Specify directory for log files. + logdir /var/log/chrony + params: + $ntp_pool: {get_param: NtpPool} + $provision_cidr: {get_param: provision_net_cidr} + $provision2_cidr: {get_param: provision_net2_cidr} + $provision3_cidr: {get_param: provision_net3_cidr} init_runcmd: type: OS::Heat::CloudConfig