Browse Source

Merge "Don't add external tasks for roles with zero count" into stable/wallaby

changes/67/792667/1
Zuul 4 weeks ago
committed by Gerrit Code Review
parent
commit
e0ce8c0143
1 changed files with 20 additions and 5 deletions
  1. +20
    -5
      common/deploy-steps.j2

+ 20
- 5
common/deploy-steps.j2 View File

@ -266,7 +266,10 @@ resources:
value:
list_concat_unique:
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, pre_deploy_step_tasks]
- if:
- {{role.name}}NonZero
- get_param: [role_data, {{role.name}}, pre_deploy_step_tasks]
- []
{%- endfor %}
ExternalDeployTasks:
@ -276,7 +279,10 @@ resources:
value:
list_concat_unique:
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_deploy_tasks]
- if:
- {{role.name}}NonZero
- get_param: [role_data, {{role.name}}, external_deploy_tasks]
- []
{%- endfor %}
ExternalPostDeployTasks:
@ -286,7 +292,10 @@ resources:
value:
list_concat_unique:
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_post_deploy_tasks]
- if:
- {{role.name}}NonZero
- get_param: [role_data, {{role.name}}, external_post_deploy_tasks]
- []
{%- endfor %}
ScaleTasks:
@ -306,7 +315,10 @@ resources:
value:
list_concat_unique:
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_update_tasks]
- if:
- {{role.name}}NonZero
- get_param: [role_data, {{role.name}}, external_update_tasks]
- []
{%- endfor %}
ExternalUpgradeTasks:
@ -316,7 +328,10 @@ resources:
value:
list_concat_unique:
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_upgrade_tasks]
- if:
- {{role.name}}NonZero
- get_param: [role_data, {{role.name}}, external_upgrade_tasks]
- []
{%- endfor %}
BootstrapServerId:


Loading…
Cancel
Save