Skip to content

Commit d2a9272

Browse files
cgoncalvesjohnsom
authored andcommitted
Enable the SCL repository for CentOS
Enable the Software Collections (SCL) repository for CentOS. This repository includes useful software (e.g. the Go Toolset) which is not present in the main repository. For example, Octavia uses a Go based testing tool and its CentOS-based jobs got broken now with the update to CentOS 7.6 which no longer provides golang. Change-Id: Ic68a6d6cd7da41510e624b6bea7976d9a960af98
1 parent 14f6726 commit d2a9272

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

stack.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,13 @@ function _install_rdo {
335335
# no-op on other platforms.
336336
sudo yum-config-manager --enable rhel-7-server-optional-rpms
337337

338+
# Enable the Software Collections (SCL) repository for CentOS.
339+
# This repository includes useful software (e.g. the Go Toolset)
340+
# which is not present in the main repository.
341+
if [[ "$os_VENDOR" =~ (CentOS) ]]; then
342+
yum_install centos-release-scl
343+
fi
344+
338345
if is_oraclelinux; then
339346
sudo yum-config-manager --enable ol7_optional_latest ol7_addons ol7_MySQL56
340347
fi

0 commit comments

Comments
 (0)