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:
parent
eb7a60089c
commit
36c16a189f
@ -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…
Reference in New Issue
Block a user