Check BMC type is supported in kayobe overcloud bios raid configure

This commit is contained in:
Mark Goddard 2017-04-04 18:56:49 +01:00
parent c56d126ddc
commit 83c34555b6
2 changed files with 22 additions and 1 deletions

View File

@ -1,8 +1,29 @@
--- ---
# Perform configuration of the overcloud nodes' BIOS and RAID. Nodes should be
# registered with the seed's ironic service but not active. The BIOS and RAID
# is configured out of band using the ansible stackhpc.drac role. As such, only
# Dell servers with iDRACs are currently supported. During configuration, we
# set the ironic nodes' to maintenance mode to prevent ironic from managing
# their power states.
- name: Group controller hosts by their BMC type - name: Group controller hosts by their BMC type
hosts: controllers hosts: controllers
gather_facts: no gather_facts: no
vars:
# List of BMC types supporting BIOS and RAID configuration.
supported_bmc_types:
- idrac
tasks: tasks:
- name: Fail if controller has BIOS and/or RAID configuration and BMC type is not supported
fail:
msg: >
Controller has BIOS and/or RAID configuration but BMC type
{% if bmc_type is undefined %}is not defined{% else %}{{ bmc_type }}
is not supported{% endif %}.
when:
- "{{ controller_bios_config or controller_raid_config }}"
- "{{ bmc_type is undefined or bmc_type not in supported_bmc_types }}"
- name: Group controller hosts by their BMC type - name: Group controller hosts by their BMC type
group_by: group_by:
key: "controllers_with_bmcs_of_type_{{ bmc_type | default('unknown') }}" key: "controllers_with_bmcs_of_type_{{ bmc_type | default('unknown') }}"

View File

@ -136,7 +136,7 @@
# multiple controllers. # multiple controllers.
run_once: True run_once: True
- name: Wait for the Bifrost controller inventory to become active - name: Wait for the ironic node to become active
command: > command: >
docker exec bifrost_deploy docker exec bifrost_deploy
bash -c '. env-vars && bash -c '. env-vars &&