Browse code

Merge "Enable the SCL repository for CentOS"

Zuul authored on 2018/12/08 14:15:46
Showing 1 changed files
... ...
@@ -335,6 +335,13 @@ function _install_rdo {
335 335
     # no-op on other platforms.
336 336
     sudo yum-config-manager --enable rhel-7-server-optional-rpms
337 337
 
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
+
338 345
     if is_oraclelinux; then
339 346
         sudo yum-config-manager --enable ol7_optional_latest ol7_addons ol7_MySQL56
340 347
     fi