Support YAML sequence for DNS and NTP servers

- When specifying the list of upstream DNS or NTP servers
  to configure MAAS with, use YAML sequences rather than
  forcing a string

Change-Id: If0da29c0ad2c7299250ecba120bca54920e54052
This commit is contained in:
Scott Hussey 2018-10-22 14:35:55 -05:00
parent d1d5b88d3d
commit 56cc46f9f0
2 changed files with 4 additions and 4 deletions

View File

@ -68,13 +68,13 @@ spec:
- name: MAAS_HTTP_BOOT
value: {{ .Values.conf.maas.http_boot | quote }}
- name: MAAS_NTP_SERVERS
value: {{ .Values.conf.maas.ntp.ntp_servers }}
value: {{ .Values.conf.maas.ntp.ntp_servers | join "," | quote }}
- name: MAAS_NTP_EXTERNAL_ONLY
value: {{ .Values.conf.maas.ntp.use_external_only | quote }}
- name: MAAS_DNS_DNSSEC_REQUIRED
value: {{ .Values.conf.maas.dns.require_dnssec | quote }}
- name: MAAS_DNS_SERVERS
value: {{ .Values.conf.maas.dns.dns_servers }}
value: {{ .Values.conf.maas.dns.dns_servers | join "," | quote }}
- name: MAAS_DEFAULT_OS
value: {{ .Values.conf.maas.images.default_os | quote }}
- name: MAAS_DEFAULT_DISTRO

View File

@ -157,11 +157,11 @@ conf:
# Use external only points region and rack serves and deployed nodes directly
# at external NTP servers. Otherwise we have nodes -> rack -> region -> external
use_external_only: false
ntp_servers: null
ntp_servers: []
dns:
require_dnssec: no
# These are upstream servers
dns_servers: null
dns_servers: []
proxy:
# Whether deploying nodes should use MaaS region as an APT proxy
proxy_enabled: false