aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_data/foreman_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_data/foreman_setup.sh')
-rwxr-xr-xtests/test_data/foreman_setup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_data/foreman_setup.sh b/tests/test_data/foreman_setup.sh
index 778ee73d..dfefeb75 100755
--- a/tests/test_data/foreman_setup.sh
+++ b/tests/test_data/foreman_setup.sh
@@ -5,6 +5,9 @@ SUCCESS=0
if grep -iq centos /etc/os-release; then
if [[ `echo | awk "{print ($FOREMAN_VER >= 3.4)}"` -eq 1 ]]; then
dnf -y install https://yum.puppet.com/puppet7-release-el-8.noarch.rpm
+ # workaround for https://community.theforeman.org/t/puppet-7-29-0-8-5-0-breaks-our-installer/37075
+ # can be removed once https://github.com/puppetlabs/puppet/pull/9269 is in downstream
+ echo "excludepkgs=puppet-agent-7.29.0*" >> /etc/yum.repos.d/puppet7-release.repo
dnf -y install https://yum.theforeman.org/releases/$FOREMAN_VER/el8/x86_64/foreman-release.rpm
dnf -y module enable foreman:el8
else
@@ -21,6 +24,11 @@ elif grep -iq debian /etc/os-release; then
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
curl https://apt.puppet.com/puppet7-release-bullseye.deb --output /root/puppet7-release-bullseye.deb
+ # workaround for https://community.theforeman.org/t/puppet-7-29-0-8-5-0-breaks-our-installer/37075
+ # can be removed once https://github.com/puppetlabs/puppet/pull/9269 is in downstream
+ cat <<< 'Package: puppet-agent
+ Pin: version 7.29.0*
+ Pin-Priority: -10' | sed "s/^ //g" > /etc/apt/preferences.d/puppet.pref
apt-get install /root/puppet7-release-bullseye.deb
curl https://deb.theforeman.org/foreman.asc --output /etc/apt/trusted.gpg.d/foreman.asc
echo "deb http://deb.theforeman.org/ bullseye $FOREMAN_VER" | tee /etc/apt/sources.list.d/foreman.list