summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-12-09 14:48:13 -0800
committerTim Smith <tsmith84@gmail.com>2020-12-28 21:45:12 -0800
commite307f3a23583e6adf6a777da8fae74e43f4d78cb (patch)
treefcc64344113d05699c0e2bd44c21043ca22d11b5 /kitchen-tests
parent981374b6cf03b6736d4512ceb8aad4c94bdf7c5f (diff)
downloadchef-e307f3a23583e6adf6a777da8fae74e43f4d78cb.tar.gz
Ensure we can still install RHEL 7 GCC on RHEL 6 in testingrhel6_tests
These are the terrible things you get to do to support an EOL platform. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/kitchen.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/kitchen-tests/kitchen.yml b/kitchen-tests/kitchen.yml
index 4b56d70fe1..bc68607afe 100644
--- a/kitchen-tests/kitchen.yml
+++ b/kitchen-tests/kitchen.yml
@@ -69,7 +69,8 @@ platforms:
pid_one_command: /sbin/init
intermediate_instructions:
- RUN sed -i -e "s/Defaults.*requiretty.*/Defaults !requiretty/g" /etc/sudoers
- - RUN yum install -y centos-release-scl
+ - RUN wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo
+ - RUN printf "[centos-sclo-rh]\nname=CentOS-6 - SCLo rh\nbaseurl=http://vault.centos.org/centos/6/sclo/x86_64/rh\ngpgcheck=1\nenabled=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo" > /etc/yum.repos.d/CentOS-SCLo-rh.repo
- RUN yum install -y devtoolset-7
- RUN scl enable devtoolset-7 bash