diff --git a/ansible/roles/ironic/tasks/precheck.yml b/ansible/roles/ironic/tasks/precheck.yml index 1ad15ae229..52f6b50225 100644 --- a/ansible/roles/ironic/tasks/precheck.yml +++ b/ansible/roles/ironic/tasks/precheck.yml @@ -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 diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml index 94528b8132..6062082167 100644 --- a/etc/kolla/globals.yml +++ b/etc/kolla/globals.yml @@ -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