Files
tripleo-quickstart-extras/playbooks/multinode-standalone-upgrade.yml
Alex Schultz 05b5b272f3 Add ability to disable yum update with gating repo
Previously when the gating repo was enabled, we would blindly yum update
with the repo. This probably shouldn't be the case as we should just be
installing or updating the new packages after the repo has been
installed. However to maintain backwards compatibility, a new variable
called ib_gating_repo_update has been created with the default of True.
To disable the yum update after isntalling built repo, set this to
false.

Change-Id: I5172134738b5b3d5146e45f1e0a7720b6e1d5a2c
Closes-Bug: #1796639
2018-12-01 14:11:29 +00:00

68 lines
2.0 KiB
YAML

---
# Opening up repo-setup as cached variables can cause issue, see
# https://bugs.launchpad.net/tripleo/+bug/1795367
- name: Standalone upgrade repos setup and host upgrade
hosts: undercloud
tasks:
- name: Standalone upgrade get new dlrn hash.
include_role:
name: repo-setup
tasks_from: get-dlrn-hash
- name: Standalone upgrade get new dlrn hash.
include_role:
name: repo-setup
tasks_from: get-dlrn-hash-newest
- name: Standalone upgrade generate new dlrn repo-setup script.
include_role:
name: repo-setup
tasks_from: create-repo-script
vars:
repo_setup_script: repo_setup_upgrade.sh
# The next task triggers the yum upgrade command in as
# repo_setup_run_update is true in release files by default.
- name: Standalone upgrade setup new repos
include_role:
name: repo-setup
tasks_from: setup_repos
vars:
repo_setup_log: repo_setup_upgrade.log
repo_setup_script: repo_setup_upgrade.sh
tags:
- standalone-upgrade
# This is what is gating the patch in the N version in a N-1->N
# upgrade.
- name: Standalone upgrade runs DLRN gate role and install repo
hosts: undercloud
vars:
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:
- build-test-packages
- {role: install-built-repo, when: compressed_gating_repo is defined}
tags:
- standalone-upgrade
- name: Standalone Upgrade
hosts: undercloud
vars:
standalone_libvirt_type: "{{ virt_type|default('qemu') }}"
roles:
- standalone-upgrade
tags:
- standalone-upgrade
- name: Validate the Standalone upgrade
hosts: undercloud
gather_facts: false
roles:
- {role: validate-tempest, when: run_tempest|bool}
tags:
- standalone-upgrade