Merge "Use list_concat_unique instead of yaql"

This commit is contained in:
Zuul 2021-04-06 19:59:29 +00:00 committed by Gerrit Code Review
commit b104f039af
1 changed files with 20 additions and 35 deletions

View File

@ -274,65 +274,50 @@ resources:
properties: properties:
type: comma_delimited_list type: comma_delimited_list
value: value:
yaql: list_concat_unique:
# processing from per-role unique tasks into globally unique tasks {%- for role in enabled_roles %}
expression: coalesce($.data, []).flatten().distinct() - get_param: [role_data, {{role.name}}, external_deploy_tasks]
data: {%- endfor %}
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_deploy_tasks]
{%- endfor %}
ExternalPostDeployTasks: ExternalPostDeployTasks:
type: OS::Heat::Value type: OS::Heat::Value
properties: properties:
type: comma_delimited_list type: comma_delimited_list
value: value:
yaql: list_concat_unique:
# processing from per-role unique tasks into globally unique tasks {%- for role in enabled_roles %}
expression: coalesce($.data, []).flatten().distinct() - get_param: [role_data, {{role.name}}, external_post_deploy_tasks]
data: {%- endfor %}
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_post_deploy_tasks]
{%- endfor %}
ScaleTasks: ScaleTasks:
type: OS::Heat::Value type: OS::Heat::Value
properties: properties:
type: comma_delimited_list type: comma_delimited_list
value: value:
yaql: list_concat_unique:
# processing from per-role unique tasks into globally unique tasks {%- for role in enabled_roles %}
expression: coalesce($.data, []).flatten().distinct() - get_param: [role_data, {{role.name}}, scale_tasks]
data: {%- endfor %}
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, scale_tasks]
{%- endfor %}
ExternalUpdateTasks: ExternalUpdateTasks:
type: OS::Heat::Value type: OS::Heat::Value
properties: properties:
type: comma_delimited_list type: comma_delimited_list
value: value:
yaql: list_concat_unique:
# processing from per-role unique tasks into globally unique tasks {%- for role in enabled_roles %}
expression: coalesce($.data, []).flatten().distinct() - get_param: [role_data, {{role.name}}, external_update_tasks]
data: {%- endfor %}
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_update_tasks]
{%- endfor %}
ExternalUpgradeTasks: ExternalUpgradeTasks:
type: OS::Heat::Value type: OS::Heat::Value
properties: properties:
type: comma_delimited_list type: comma_delimited_list
value: value:
yaql: list_concat_unique:
# processing from per-role unique tasks into globally unique tasks {%- for role in enabled_roles %}
expression: coalesce($.data, []).flatten().distinct() - get_param: [role_data, {{role.name}}, external_upgrade_tasks]
data: {%- endfor %}
{%- for role in enabled_roles %}
- get_param: [role_data, {{role.name}}, external_upgrade_tasks]
{%- endfor %}
BootstrapServerId: BootstrapServerId:
type: OS::Heat::Value type: OS::Heat::Value