Run tasks on primary role first

This patch adds the primary role name as the first host pattern in the
individual plays in deploy-steps.j2. This will ensure that the primary
role will execute tasks first, which is needed so that all Pacemaker
nodes run the same step at the same time.

Change-Id: I9c499be87ce51ae28914b013b4b91446a3a68015
Closes-Bug: #1768238
(cherry picked from commit 1497da08d5)
This commit is contained in:
James Slagle 2018-05-01 13:21:23 -04:00
parent cc62709055
commit ae528b6626
1 changed files with 5 additions and 5 deletions

View File

@ -417,7 +417,7 @@ outputs:
tags:
- common_roles
- hosts: overcloud
- hosts: {{primary_role_name}}:overcloud
name: Server deployments
gather_facts: no
any_errors_fatal: yes
@ -433,7 +433,7 @@ outputs:
- overcloud
- pre_deploy_steps
- hosts: overcloud
- hosts: {{primary_role_name}}:overcloud
name: Host prep steps
gather_facts: no
any_errors_fatal: yes
@ -464,7 +464,7 @@ outputs:
- external
- external_deploy_steps
- hosts: overcloud
- hosts: {{primary_role_name}}:overcloud
name: Overcloud deploy step tasks for {{step}}
gather_facts: no
any_errors_fatal: yes
@ -483,7 +483,7 @@ outputs:
- overcloud
- deploy_steps
- hosts: overcloud
- hosts: {{primary_role_name}}:overcloud
name: Overcloud common deploy step tasks {{step}}
gather_facts: no
any_errors_fatal: yes
@ -497,7 +497,7 @@ outputs:
- deploy_steps
{%- endfor %}
- hosts: overcloud
- hosts: {{primary_role_name}}:overcloud
name: Server Post Deployments
gather_facts: no
any_errors_fatal: yes