Browse Source

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
changes/93/790893/3
ramishra 1 month ago
parent
commit
7fd0dd5d4b
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