Also write an upgrade_tasks_playbook
To get this to work upgrade_tasks need to be rewritten with 'when' statements like the update tasks (in parent review from shardy). So that we don't break the existing upgrades workflow, we add these as part of the config download see the depends on Related-Bug: 1708115 Depends-On: Ief593dc758a2ffe33c1cbcbda9289393fcf023e4 Change-Id: Ib01b96a2c26721747d81d98e3d57c4c388663004
This commit is contained in:
parent
4dabd2c487
commit
060ff37c4f
@ -11,6 +11,7 @@
|
||||
# primary role is: {{primary_role_name}}
|
||||
{% set deploy_steps_max = 6 -%}
|
||||
{% set update_steps_max = 6 -%}
|
||||
{% set upgrade_steps_max = 6 -%}
|
||||
|
||||
heat_template_version: pike
|
||||
|
||||
@ -337,4 +338,20 @@ outputs:
|
||||
with_sequence: count={{deploy_steps_max-1}}
|
||||
loop_control:
|
||||
loop_var: step
|
||||
upgrade_steps_tasks: |
|
||||
{%- for role in roles %}
|
||||
- include: {{role.name}}/upgrade_tasks.yaml
|
||||
when: role_name == '{{role.name}}'
|
||||
{%- endfor %}
|
||||
upgrade_steps_playbook: |
|
||||
- hosts: overcloud
|
||||
tasks:
|
||||
- include: upgrade_steps_tasks.yaml
|
||||
with_sequence: count={{upgrade_steps_max-1}}
|
||||
loop_control:
|
||||
loop_var: step
|
||||
- include: deploy_steps_tasks.yaml
|
||||
with_sequence: count={{deploy_steps_max-1}}
|
||||
loop_control:
|
||||
loop_var: step
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user