tripleo-heat-templates/environments/lifecycle/upgrade-prepare.yaml
mciecier 86d4a348a3 Fix 'Ensure DNF modules have the right stream'
This change solves bug [1]. Change introduces a new mandatory field to
DnfStreams parameter and adjusts 'Ensure DNF modules have the right
stream' task to use new field. New field is called distribution_version
and its purpose is to choose modules enabled in centos8 or in centos9.

DnfStreams parameter defines list of dnf module streams to be configured
before updating packages both on undercloud and overcloud.

[1]https://bugs.launchpad.net/tripleo/+bug/1968706

Change-Id: I3f7f3002c985b0b618ba30a2497635a33a318624
2022-06-20 23:12:54 +02:00

21 lines
801 B
YAML

# Environment file used in the first step of an overcloud upgrade.
# This file is required by the tripleoclient and not expected to be updated
# by the operator. Please use additional -e env.yaml.
resource_registry:
OS::TripleO::Tasks::*PreConfig: OS::Heat::None
OS::TripleO::Tasks::*PostConfig: OS::Heat::None
# Deprecated/Name changed services
OS::TripleO::Services::MongoDb: OS::Heat::None
parameter_defaults:
CephAnsiblePlaybook: default
EnablePackageInstall: true
ServerDeletionPolicy: retain
UpgradeLevelNovaCompute: auto
UpgradeLeappToRemove: ['openvswitch2.11','ovn2.11']
UpgradeLeappToInstall: ['openvswitch2.15','ovn2.15']
UpgradeInitCommonCommand: |
#!/bin/bash
set -eu
DnfStreams: [{'module':'container-tools', 'stream':'3.0', 'distribution_version':'8'}]