Created
August 13, 2011 21:51
-
-
Save ericdwhite/1144281 to your computer and use it in GitHub Desktop.
cookbooks/mongodb/recipes/default.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| execute 'apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10' do | |
| user 'root' | |
| not_if 'apt-key list | grep 7F0CEB10' | |
| end | |
| execute "add-apt-repository 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen'" do | |
| user 'root' | |
| not_if 'grep mongodb /etc/apt/sources.list' | |
| end | |
| execute "apt-add-repository -r 'deb-src http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen'" do | |
| user 'root' | |
| only_if 'cat /etc/apt/sources.list | grep deb-src | grep mongodb' | |
| end | |
| execute 'apt-get update' do | |
| user 'root' | |
| end | |
| # | |
| # You might want to consider adding the following to /etc/mongodb.conf | |
| # rest = true | |
| # journal = true | |
| package 'mongodb-10gen' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment