Merge "ironic: add enable_ironic_dnsmasq parameter"

This commit is contained in:
Zuul 2024-12-16 11:04:51 +00:00 committed by Gerrit Code Review
commit 00de2aaddb
4 changed files with 11 additions and 2 deletions

View File

@ -900,6 +900,7 @@ enable_horizon_watcher: "{{ enable_watcher | bool }}"
enable_horizon_zun: "{{ enable_zun | bool }}"
enable_influxdb: "{{ enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb' }}"
enable_ironic: "no"
enable_ironic_dnsmasq: "{{ enable_ironic | bool }}"
enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
enable_ironic_prometheus_exporter: "{{ enable_ironic | bool and enable_prometheus | bool }}"
enable_iscsid: "{{ enable_cinder | bool and enable_cinder_backend_iscsi | bool }}"

View File

@ -79,7 +79,7 @@ ironic_services:
ironic-dnsmasq:
container_name: ironic_dnsmasq
group: ironic-inspector
enabled: true
enabled: "{{ enable_ironic_dnsmasq }}"
cap_add:
- NET_ADMIN
- NET_RAW

View File

@ -84,4 +84,6 @@
ironic_dnsmasq_dhcp_ranges must be a list
connection: local
run_once: True
when: not ironic_dnsmasq_dhcp_ranges is sequence
when:
- enable_ironic_dnsmasq | bool
- not ironic_dnsmasq_dhcp_ranges is sequence

View File

@ -0,0 +1,6 @@
---
features:
- |
With the ``enable_ironic_dnsmasq`` parameter it is possible
to explicitly disable the ironic-dnsmasq service. By default,
the parameter is set to the value of ``enable_ironic``.