From 0a9f3a8e6f728ceef4c1dc992b513dc5c0e3a6e0 Mon Sep 17 00:00:00 2001 From: Gregory Thiemonge Date: Tue, 2 Nov 2021 16:39:38 +0100 Subject: [PATCH] Add support for Centos 9 Stream Update elements for c9s Change-Id: I3f9d08fd4ce038208b8c2d160e6abecae8c8383d --- elements/amphora-agent/pkg-map | 11 +++++++++++ .../haproxy-octavia/pre-install.d/01-repositories | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/elements/amphora-agent/pkg-map b/elements/amphora-agent/pkg-map index 501231d7f8..de5f01a84a 100644 --- a/elements/amphora-agent/pkg-map +++ b/elements/amphora-agent/pkg-map @@ -20,6 +20,17 @@ "vlan": "", "screen": "", "dkms": "" + }, + "9-stream": { + "debootstrap": "", + "isc-dhcp-client": "dhcp-client", + "python3-dev": "platform-python-devel", + "python3-venv": "", + "python3": "python39", + "vlan": "", + "screen": "", + "dkms": "", + "network-scripts": "" } }, "ubuntu": { diff --git a/elements/haproxy-octavia/pre-install.d/01-repositories b/elements/haproxy-octavia/pre-install.d/01-repositories index 03ee47286d..e553cbe67b 100755 --- a/elements/haproxy-octavia/pre-install.d/01-repositories +++ b/elements/haproxy-octavia/pre-install.d/01-repositories @@ -3,7 +3,7 @@ set -eu set -o xtrace -if [ "$DISTRO_NAME" == "centos" ]; then +if [[ "$DISTRO_NAME" == "centos" && "$DIB_RELEASE" == "8" ]]; then dnf install -y dnf-plugins-core centos-release-nfv-common # REVISIT(cgoncalves): replace arch if-else + GPG with release RPM once available if [[ "$ARCH" =~ (aarch64|arm64) ]]; then