diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 30f816bb27..1fcecc611f 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -657,6 +657,9 @@ neutron_tenant_network_types: "vxlan" neutron_compute_dvr_mode: "dvr" computes_need_external_bridge: "{{ enable_neutron_dvr | bool and (neutron_compute_dvr_mode == 'dvr' or inventory_hostname in groups['external-compute']) or enable_neutron_provider_networks | bool or enable_opendaylight | bool and neutron_plugin_agent != 'vmware_dvs' }}" +# Default DNS resolvers for virtual networks +neutron_dnsmasq_dns_servers: "1.1.1.1,8.8.8.8,8.8.4.4" + ####################### # Nova options ####################### diff --git a/ansible/roles/neutron/templates/dhcp_agent.ini.j2 b/ansible/roles/neutron/templates/dhcp_agent.ini.j2 index 6582157406..d5596ca316 100644 --- a/ansible/roles/neutron/templates/dhcp_agent.ini.j2 +++ b/ansible/roles/neutron/templates/dhcp_agent.ini.j2 @@ -3,7 +3,7 @@ dnsmasq_config_file = /etc/neutron/dnsmasq.conf enable_isolated_metadata = true force_metadata = true -dnsmasq_dns_servers = 8.8.8.8,8.8.4.4 +dnsmasq_dns_servers = {{ neutron_dnsmasq_dns_servers }} {% if neutron_plugin_agent == 'vmware_dvs' %} ovs_integration_bridge = {{ neutron_bridge_name }}