Skip to content

Instantly share code, notes, and snippets.

View plusplus's full-sized avatar
🚲

Julian Russell plusplus

🚲
  • Hobart, Tasmania, Australia
View GitHub Profile
@plusplus
plusplus / mongo-chef.rb
Created July 21, 2011 00:45 — forked from veryhappythings/mongo-chef.rb
A chef recipe for installing mongoDB from apt-get on ubuntu.
execute 'apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10' do
user 'root'
end
ubuntu_version = node[:platform_version]
ubuntu_version.gsub! '.0', '.'
execute "echo 'deb http://downloads.mongodb.org/distros/ubuntu #{ubuntu_version} 10gen' >> /etc/apt/sources.list" do
user 'root'
not_if 'grep mongodb /etc/apt/sources.list'
end
@plusplus
plusplus / mongo-chef.rb
Created July 21, 2011 00:45 — forked from veryhappythings/mongo-chef.rb
A chef recipe for installing mongoDB from apt-get on ubuntu.
execute 'apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10' do
user 'root'
end
ubuntu_version = node[:platform_version]
ubuntu_version.gsub! '.0', '.'
execute "echo 'deb http://downloads.mongodb.org/distros/ubuntu #{ubuntu_version} 10gen' >> /etc/apt/sources.list" do
user 'root'
not_if 'grep mongodb /etc/apt/sources.list'
end