Merge "Speed up deployment by reusing facts"

This commit is contained in:
Zuul 2017-11-06 05:09:24 +00:00 committed by Gerrit Code Review
commit e463ca15fb
1 changed files with 13 additions and 0 deletions

View File

@ -354,8 +354,13 @@ outputs:
params:
BOOTSTRAP_SERVER_ID: {get_param: [servers, {{primary_role_name}}, '0']}
template: |
- hosts: undercloud:overcloud
name: Gather facts
gather_facts: yes
- hosts: overcloud
name: Server deployments
gather_facts: no
any_errors_fatal: yes
tasks:
{%- for role in roles %}
- include: {{role.name}}/deployments.yaml
@ -366,6 +371,8 @@ outputs:
{%- endfor %}
- hosts: overcloud
name: Deployment steps
gather_facts: no
any_errors_fatal: yes
vars:
bootstrap_server_id: BOOTSTRAP_SERVER_ID
tasks:
@ -376,12 +383,16 @@ outputs:
{%- for step in range(1,deploy_steps_max) %}
- hosts: undercloud
name: Undercloud deployment step {{step}}
gather_facts: no
any_errors_fatal: yes
vars:
step: '{{step}}'
tasks:
- include: external_deploy_steps_tasks.yaml
- hosts: overcloud
name: Overcloud deployment step {{step}}
gather_facts: no
any_errors_fatal: yes
vars:
bootstrap_server_id: BOOTSTRAP_SERVER_ID
step: '{{step}}'
@ -390,6 +401,8 @@ outputs:
{%- endfor %}
- hosts: overcloud
name: Server Post Deployments
gather_facts: no
any_errors_fatal: yes
tasks:
{%- for role in roles %}
- include: {{role.name}}/deployments.yaml