Merge "Populate DNSMasq with host entries"

This commit is contained in:
Zuul 2023-07-15 01:24:10 +00:00 committed by Gerrit Code Review
commit 409c22736a
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class platform::dns::dnsmasq
# dependent template variables
$install_uuid = $::install_uuid
$system_mode = $::platform::params::system_mode
include ::platform::params
$config_path = $::platform::params::config_path

View File

@ -130,6 +130,12 @@ server=/<%= @service_domain %>/<%= @dns_service_ip %>
cname=registry.local,controller
cname=registry-token-server.local,controller
<%- if @system_mode == 'simplex' -%>
cname=controller,controller.internal
cname=controller-0,controller-0.internal
cname=controller-1,controller-1.internal
<%- end -%>
<%- if @distributed_cloud_role == 'systemcontroller' -%>
cname=registry.central,controller
<%- end -%>