Don't add external tasks for roles with zero count

We don't need to add these tasks for roles with zero
count. We probably should not create service chains for
roles with zero count, but that's a bigger change.

Change-Id: I41c6b4799eef7940b12811468dcc48e7b6fa543b
(cherry picked from commit 7fd0dd5d4b)
This commit is contained in:
ramishra 2021-05-12 07:27:22 +05:30 committed by Rabi Mishra
parent eb7a60089c
commit 36c16a189f
1 changed files with 20 additions and 5 deletions

View File

@ -266,7 +266,10 @@ resources:
value:
list_concat_unique:
{%- for role in enabled_roles %}
- 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 %}
- 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 %}
- 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 %}
- 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 %}
- if:
- {{role.name}}NonZero
- get_param: [role_data, {{role.name}}, external_upgrade_tasks]
- []
{%- endfor %}
BootstrapServerId: