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:
caoyuan 2017-10-11 10:36:36 +08:00
parent 29226edf14
commit e5edf98266
2 changed files with 12 additions and 1 deletions

View File

@ -41,3 +41,12 @@
with_items: with_items:
- "ironic-agent.kernel" - "ironic-agent.kernel"
- "ironic-agent.initramfs" - "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

View File

@ -359,7 +359,9 @@ kolla_internal_vip_address: "10.10.10.254"
############################# #############################
# Ironic options # 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 # Manila - Shared File Systems Options