Add support for neutron custom dnsmasq.conf

Change-Id: Ia7041be384ac07d0a790c2c5c68b1b31ff0e567a
This commit is contained in:
Christian Berendt 2019-06-27 09:46:18 +02:00
parent f9ca973869
commit a3f1ded357
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``.