From 452a9d947e551c309329594a859459648621c7e3 Mon Sep 17 00:00:00 2001 From: Steve Ardis Date: Mon, 22 Jun 2015 10:10:50 -0400 Subject: [PATCH 1/2] Added stable mongodb apt-repository for finding Mongo 3 distributions --- recipes/mongodb_org_repo.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recipes/mongodb_org_repo.rb b/recipes/mongodb_org_repo.rb index c5eb97d3..bdb28aeb 100644 --- a/recipes/mongodb_org_repo.rb +++ b/recipes/mongodb_org_repo.rb @@ -35,6 +35,15 @@ action :add end + apt_repository 'mongodb' do + uri "http://repo.mongodb.org/apt/ubuntu" + distribution 'trusty/mongodb-org/stable' + components ['multiverse'] + keyserver 'hkp://keyserver.ubuntu.com:80' + key '7F0CEB10' + action :add + end + when 'rhel', 'fedora' yum_repository 'mongodb' do description 'mongodb RPM Repository' From 904f85d1288c8de836f536f430f12d481bddf0f5 Mon Sep 17 00:00:00 2001 From: Steve Ardis Date: Mon, 22 Jun 2015 10:12:05 -0400 Subject: [PATCH 2/2] Added stable mongodb yum-repository for finding Mongo 3 distributions --- recipes/mongodb_org_repo.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes/mongodb_org_repo.rb b/recipes/mongodb_org_repo.rb index c5eb97d3..cd28ec1f 100644 --- a/recipes/mongodb_org_repo.rb +++ b/recipes/mongodb_org_repo.rb @@ -43,6 +43,14 @@ gpgcheck false enabled true end + + yum_repository 'mongodb-org-3.0' do + description 'MongoDB Repository' + baseurl "https://repo.mongodb.org/yum/redhat/6/mongodb-org/3.0/#{node['kernel']['machine'] =~ /x86_64/ ? 'x86_64' : 'i686'}" + action :create + gpgcheck false + enabled true + end else # pssst build from source