diff --git a/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 b/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 index 72a68511b..ebb033059 100644 --- a/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 +++ b/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 @@ -83,6 +83,10 @@ dhcp-option=3 dhcp-option=6,{{dnsmasq_dns_servers}} {% endif %} +{% if dnsmasq_ntp_servers is defined %} +dhcp-option=42,{{dnsmasq_ntp_servers}} +{% endif %} + # Boot for Etherboot gPXE. The idea is to send two different # filenames, the first loads gPXE, and the second tells gPXE what to # load. The dhcp-match sets the gpxe tag for requests from gPXE. diff --git a/releasenotes/notes/populate_ntp_servers_dnsmasq-249d2a26b94b0bf1.yaml b/releasenotes/notes/populate_ntp_servers_dnsmasq-249d2a26b94b0bf1.yaml new file mode 100644 index 000000000..4c2ca2989 --- /dev/null +++ b/releasenotes/notes/populate_ntp_servers_dnsmasq-249d2a26b94b0bf1.yaml @@ -0,0 +1,11 @@ +--- +features: + - Allow to populate the NTP servers setting of + dnsmasq. This is optional, but if + ``dnsmasq_ntp_servers``setting is set, it adds a + ``dhcp-option=42,dnsmasq_ntp_servers`` to the + generated dnsmasq configuration for bifrost. +other: + - When configuring the ``dnsmasq_ntp_servers`` setting, + several NTP servers can be specified, separated by + commas.