Merge "Add support for neutron custom dnsmasq.conf"

This commit is contained in:
Zuul 2019-06-27 13:59:42 +00:00 committed by Gerrit Code Review
commit 85b9dabcd4
2 changed files with 11 additions and 1 deletions

View File

@ -196,10 +196,14 @@
service_name: "neutron-dhcp-agent"
neutron_dhcp_agent: "{{ neutron_services[service_name] }}"
template:
src: "dnsmasq.conf.j2"
src: "{{ item }}"
dest: "{{ node_config_directory }}/{{ service_name }}/dnsmasq.conf"
mode: "0660"
register: dnsmasq_conf
with_first_found:
- "{{ node_custom_config }}/neutron/{{ inventory_hostname }}/dnsmasq.conf"
- "{{ node_custom_config }}/neutron/dnsmasq.conf"
- "dnsmasq.conf.j2"
when:
- neutron_dhcp_agent.enabled | bool
- neutron_dhcp_agent.host_in_groups | bool

View File

@ -0,0 +1,6 @@
---
features:
- |
The ``dnsmasq.conf`` configuration file used by the Neutron DHCP agent can be
overwritten by ``{{ node_custom_config}}/neutron/dnsmasq.conf`` or
``{{ node_custom_config }}/neutron/{{ inventory_hostname }}/dnsmasq.conf``.