89 lines
2.8 KiB
YAML
89 lines
2.8 KiB
YAML
---
|
|
# the yum repos ALWAYS need to change
|
|
- name: Configure next release repository in the undercloud
|
|
hosts: undercloud
|
|
tags:
|
|
- overcloud-update
|
|
vars:
|
|
repo_setup_run_update: false
|
|
# This should not be enabled because the updating of the packages occurs
|
|
# durring the upgrade process. For general installation it's ok to have
|
|
# this enabled, but this needs to be disabled for upgrades
|
|
ib_gating_repo_update: false
|
|
roles:
|
|
- role: repo-setup
|
|
|
|
# note: in upstream CI the gerrit change is built on the content-provider
|
|
# this task will be skipped upstream
|
|
- name: Build the gerrit changes on the relevant release for the upgrade
|
|
hosts: undercloud
|
|
tags:
|
|
- build
|
|
vars:
|
|
repo_setup_run_update: false
|
|
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
|
# This should not be enabled because the updating of the packages occurs
|
|
# durring the upgrade process. For general installation it's ok to have
|
|
# this enabled, but this needs to be disabled for upgrades
|
|
ib_gating_repo_update: false
|
|
roles:
|
|
- role: build-test-packages
|
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
|
|
|
|
|
- name: DEBUG save current containers-prepare-parameter.yaml
|
|
hosts: undercloud
|
|
gather_facts: false
|
|
tags:
|
|
- overcloud-update
|
|
tasks:
|
|
- name: DEBUG ensure current containers-prepare-parameter.yaml is saved
|
|
shell: |
|
|
cp containers-prepare-parameter.yaml containers-prepare-parameter-before.yaml
|
|
|
|
- name: Revert container to current dlrn tag for update testing
|
|
hosts: undercloud
|
|
gather_facts: false
|
|
tags:
|
|
- overcloud-update
|
|
roles:
|
|
- role: container-update
|
|
when:
|
|
- containerized_undercloud|default(false)|bool
|
|
- overcloud_update|default(false)|bool
|
|
vars:
|
|
release_update: "{{ release }}-current"
|
|
docker_registry_host: "{{ job.registry_ip_address_branch[release_update] }}:{{ local_registry_port }}"
|
|
|
|
|
|
- name: Prepare containers for update
|
|
hosts: undercloud
|
|
gather_facts: false
|
|
tags:
|
|
- overcloud-update
|
|
tasks:
|
|
- name: Gather facts for prep-container role
|
|
include_role:
|
|
name: overcloud-prep-containers
|
|
tasks_from: main
|
|
- name: Create prep containers script
|
|
include_role:
|
|
name: overcloud-prep-containers
|
|
tasks_from: create-scripts
|
|
- name: Run prep containers script
|
|
include_role:
|
|
name: overcloud-prep-containers
|
|
tasks_from: overcloud-prep-containers
|
|
vars:
|
|
overcloud_prep_containers_log: "update_overcloud_prep_containers.log"
|
|
when: overcloud_update|default(false)|bool
|
|
|
|
- name: Run tripleo-upgrade role to update the overcloud
|
|
hosts: undercloud
|
|
gather_facts: true
|
|
tags:
|
|
- overcloud-update
|
|
roles:
|
|
- role: tripleo-upgrade
|
|
when: overcloud_update|default(false)|bool
|