Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mongo 3 repositories #394

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions recipes/mongodb_org_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -43,6 +52,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
Expand Down