Skip to content
Snippets Groups Projects
Commit e5edf982 authored by caoyuan's avatar caoyuan
Browse files

Add the ironic_dnsmasq_dhcp_range prechecks for Ironic Dnsmasq

When deploy ironic, the ironic_dnsmasq keep restaring if
ironic_dnsmasq_dhcp_range is missing, so it necessary to add a
prechecks to ensure it be set.

Change-Id: I0c1d91f62f4e5dad2d9a45a2a7bb51b5121dbfda
parent 29226edf
No related branches found
No related tags found
No related merge requests found
......@@ -41,3 +41,12 @@
with_items:
- "ironic-agent.kernel"
- "ironic-agent.initramfs"
- name: Ensure dnsmasq_dhcp_range configured for Ironic Dnsmasq
fail:
msg: >
ironic_dnsmasq_dhcp_range must be set when enable ironic
connection: local
run_once: True
when:
- ironic_dnsmasq_dhcp_range is none
......@@ -359,7 +359,9 @@ kolla_internal_vip_address: "10.10.10.254"
#############################
# Ironic options
#############################
#ironic_dnsmasq_dhcp_range:
# following value must be set when enable ironic, the value format
# is "192.168.0.10,192.168.0.100".
ironic_dnsmasq_dhcp_range:
######################################
# Manila - Shared File Systems Options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment