Skip to content

Commit fd9a50c

Browse files
committed
(gh-19) Provide pg repos on el platforms
Test runs could not find postgresql 14 on el-8. This snippet (slightly modified) comes from the main branch and ensures a pg repo is configured for any el platform so we have access to postgresql packages. Seems like this should really be part of the puppetdb module though? Or we should be using the postgresql module maybe?
1 parent c3071e5 commit fd9a50c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

acceptance/suites/pre_suite/foss/95_install_pdb.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@
2020
end
2121
end
2222

23+
step 'Update EL postgresql repos' do
24+
# work around for testing on rhel and the repos on the image not finding the pg packages it needs
25+
if master.platform =~ /el-/
26+
major_version = master.platform.match(/el-(\d+)/)[1]
27+
28+
on master, "dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-#{major_version}-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
29+
on master, "dnf -qy module disable postgresql"
30+
end
31+
end
32+
2333
step 'Install PuppetDB module' do
2434
on(master, puppet('module install puppetlabs-puppetdb'))
2535
end

0 commit comments

Comments
 (0)