capm3: move BareMetalHosts into new 'cluster-bmh' unit
Closes #980 (closed)
- This MR makes use of sylva-projects/sylva-elements/helm-charts/sylva-capi-cluster!275 (merged) which evolves sylva-capi-cluster to introduce a new
resource_groupsvalue which will control which resources are created, allowing to have only the BMH created - this is leveraged in this MR to introduce the new
cluster-bmhunit that usessylva-capi-clusterwith the same values as the ones for theclusterunit, but with this newresource_groups: [baremetal-hosts]settings to have this unit create only the BMH resources - the existing
clusterunit is mostly untouched, it just receives the newresource_groupsto generate all the other resources (everything but BMHs) - some changes are made to the boostrap code so that the cluster-bmh is disabled/re-enabled at the same time as the cluster unit
Result:
-
the BMHs are created much earlier in the deployment (in particular in parallel with the os-image-server image download)
-
the deployment can now be done in two stages: inspection and real deployment
-
- set values with the
clusterunit disabled
- set values with the
units: cluster: enabled: false-
- run bootstrap.sh
-
- look at BMHs status to see inspection data and adjust deployment values
-
- remove the lines that disable the cluster unit
-
- run bootstrap.sh again
-
Edited by Thomas Morin