Skip to content
This repository was archived by the owner on May 20, 2020. It is now read-only.

Commit 7e742fa

Browse files
committed
Fixing for yum and apt repo list name
1 parent d3df55a commit 7e742fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

recipes/package_repo.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@
8383
node.set['mongodb3']['package']['repo']['apt']['components'] = apt_repo_component
8484
end
8585

86-
# Add the MongoDB 3.0 Package repository
86+
# Add the MongoDB Package repository
8787
case node['platform_family']
8888
when 'rhel', 'fedora'
89-
yum_repository 'mongodb-org-3.0' do
89+
yum_repository "mongodb-org-#{pkg_major_version}" do
9090
description 'MongoDB Repository'
9191
baseurl node['mongodb3']['package']['repo']['url']
9292
action :create
@@ -95,7 +95,7 @@
9595
sslverify false
9696
end
9797
when 'debian'
98-
apt_repository 'mongodb' do
98+
apt_repository "mongodb-org-#{pkg_major_version}" do
9999
uri node['mongodb3']['package']['repo']['url']
100100
distribution "#{node['lsb']['codename']}/mongodb-org/#{node['mongodb3']['package']['repo']['apt']['name']}"
101101
components node['mongodb3']['package']['repo']['apt']['components']

0 commit comments

Comments
 (0)