0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-32932 improve sles12 package testing

This commit is contained in:
Zakhar Kleyman 2018-01-29 11:30:10 -05:00
parent 3220c461b4
commit 6b1dec440c
No known key found for this signature in database
GPG Key ID: 2519D7DB755D9585

View File

@ -103,6 +103,16 @@ if platform_family? 'suse'
EOD EOD
end end
%w(
SLES12-Pool
SLES12-Updates
).each do |repo|
execute "add #{repo}" do
command "zypper addrepo --check --refresh --name \"#{repo}\" http://smt-ec2.susecloud.net/repo/SUSE/Products/SLE-SERVER/12/x86_64/product?credentials=SMT-http_smt-ec2_susecloud_net 'SMT-http_smt-ec2_susecloud_net:#{repo}'"
not_if "zypper lr | grep #{repo}"
end
end
execute 'install mongod' do execute 'install mongod' do
command 'zypper -n install `find . -name "*server*.rpm"`' command 'zypper -n install `find . -name "*server*.rpm"`'
cwd homedir cwd homedir