summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-12-09 14:48:13 -0800
committerTim Smith <tsmith84@gmail.com>2020-12-30 12:17:33 -0800
commit915aba0928a1b8aa029fbbef06f42af8555ca5ba (patch)
tree4393a107bd2f5f2f153c303acbf63fa01b5d69fe
parentef25159a0f041e1f20866e669f2b2556e6584fd7 (diff)
downloadchef-915aba0928a1b8aa029fbbef06f42af8555ca5ba.tar.gz
Ensure we can still install RHEL 7 GCC on RHEL 6 in testing
These are the terrible things you get to do to support an EOL platform. Signed-off-by: Tim Smith <tsmith@chef.io>
-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 06270987b3..660c17d2aa 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