summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildscripts/package_test/files/sources.list.debian84
-rw-r--r--buildscripts/package_test/recipes/install_mongodb.rb12
2 files changed, 16 insertions, 0 deletions
diff --git a/buildscripts/package_test/files/sources.list.debian8 b/buildscripts/package_test/files/sources.list.debian8
new file mode 100644
index 00000000000..0ad1174270a
--- /dev/null
+++ b/buildscripts/package_test/files/sources.list.debian8
@@ -0,0 +1,4 @@
+deb http://archive.debian.org/debian jessie main
+deb-src http://archive.debian.org/debian jessie main
+deb http://security.debian.org/ jessie/updates main
+deb-src http://security.debian.org/ jessie/updates main
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb
index 9b4ea703b2b..6afd92b6511 100644
--- a/buildscripts/package_test/recipes/install_mongodb.rb
+++ b/buildscripts/package_test/recipes/install_mongodb.rb
@@ -28,6 +28,18 @@ execute 'extract artifacts' do
end
if platform_family? 'debian'
+
+ # SERVER-40491 Debian 8 sources.list need to point to archive url
+ if node['platform_version'] == '8.1'
+ cookbook_file '/etc/apt/sources.list' do
+ source 'sources.list.debian8'
+ owner 'root'
+ group 'root'
+ mode '0644'
+ action :create
+ end
+ end
+
execute 'apt-get update' do
command 'apt-get update'
end