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
This commit is contained in:
parent
29226edf14
commit
e5edf98266
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user