summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian McCarthy <brian.mccarthy@mongodb.com>2022-04-11 21:50:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-12 16:28:32 +0000
commitc106d7a5ae8cdb115f9a6e0b9f246728575b2998 (patch)
tree9d172cd0be4b4864c616d20f697b96f5f4998e18
parent634c01cb8a360fd816ae61d3892bc28e580dc81b (diff)
downloadmongo-c106d7a5ae8cdb115f9a6e0b9f246728575b2998.tar.gz
SERVER-65421 Fix package test failures on RHEL 6/7
(cherry picked from commit 67b5b3b9545a532d26edc15bfe3d1d49f22e783c)
-rw-r--r--buildscripts/package_test/recipes/install_mongodb.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb
index 314ea37e646..25f115034eb 100644
--- a/buildscripts/package_test/recipes/install_mongodb.rb
+++ b/buildscripts/package_test/recipes/install_mongodb.rb
@@ -21,6 +21,33 @@ if platform_family? 'rhel'
end
end
+if %w(6 7).include?(node['platform_version'][0]) and node['platform'] == 'redhat'
+
+ # RHEL 6 client
+ if node['platform'] == 'redhat' and node['platform_version'][0] == "6"
+ rhui_client_url = "http://boxes.10gen.com/build/rh-amazon-rhui-client-els-3.0.45-1.el6.noarch.rpm"
+ end
+
+ # RHEL 7 client
+ if node['platform'] == 'redhat' and node['platform_version'][0] == "7"
+ rhui_client_url = "http://boxes.10gen.com/build/rh-amazon-rhui-client-3.0.45-1.el7.noarch.rpm"
+ end
+
+ execute 'remove old amazon rhui client' do
+ command 'rpm -ev rh-amazon-rhui-client'
+ live_stream true
+ end
+ execute 'install updated amazon rhui client' do
+ command "rpm -ivh --nodeps #{rhui_client_url}"
+ cwd homedir
+ live_stream true
+ end
+ execute 'reinstall updated amazon rhui client for dependencies' do
+ command 'yum reinstall -y rh-amazon-rhui-client*'
+ live_stream true
+ end
+end
+
remote_file "#{homedir}/#{artifacts_tarball}" do
source node['artifacts_url']
end