Add containerized_undercloud_upgrade variable.

When upgrading from Queens to Rocky, we are jumping from a
non-containerized undercloud into a containerized one.
However, this scenario hasn't been considered yet. When
submitting [0] we add the logic to upgrade always to a
containerized undercloud, we need to have a variable that
allows us differentiate between the type (containerized or
non-containrized) of undercloud we deploy and upgrade to.

[0] - Ibcdfd71b9280615aedc4d59ef0c566c475f15d0b

Related-Bug: #1855856

Change-Id: I30b4789adcf348c636d3679523075b22f8956ff1
This commit is contained in:
Jose Luis Franco Arza 2019-12-10 13:04:07 +01:00
parent 975467dc9e
commit 66ce22d6ed
2 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,7 @@
- undercloud-upgrade
roles:
- role: container-update
when: containerized_undercloud|default(false)|bool
when: containerized_undercloud_upgrade|default(false)|bool
- name: Run tripleo-upgrade role to upgrade undercloud
hosts: undercloud

View File

@ -13,6 +13,12 @@ containerized_undercloud: >-
{%- else -%}
false
{%- endif -%}
containerized_undercloud_upgrade: >-
{% if release not in ['newton','ocata','pike'] -%}
true
{%- else -%}
false
{%- endif -%}
containerized_overcloud_upgrade: >-
{% if release in ['newton', 'ocata'] -%}
false