Merge "Disable role host_prep_tasks on controlplane upgrade"
This commit is contained in:
commit
8feb27ab0d
@ -4,6 +4,9 @@
|
||||
# On upgrade certain roles can be disabled for operator driven upgrades
|
||||
# See major_upgrade_steps.j2.yaml and post-upgrade.j2.yaml
|
||||
{%- set enabled_roles = roles -%}
|
||||
{%- set is_upgrade = false -%}
|
||||
{%- else %}
|
||||
{%- set is_upgrade = true -%}
|
||||
{%- endif -%}
|
||||
{%- set primary_role = [enabled_roles[0]] -%}
|
||||
{%- for role in enabled_roles -%}
|
||||
@ -189,7 +192,11 @@ resources:
|
||||
tasks:
|
||||
# Join host_prep_tasks with the other per-host configuration
|
||||
list_concat:
|
||||
{%- if is_upgrade|default(false) and role.disable_upgrade_deployment|default(false) %}
|
||||
- []
|
||||
{%- else %}
|
||||
- {get_param: [role_data, {{role.name}}, host_prep_tasks]}
|
||||
{%- endif %}
|
||||
-
|
||||
{%- raw %}
|
||||
# Write the manifest for baremetal puppet configuration
|
||||
|
Loading…
Reference in New Issue
Block a user