Permalink
Browse files

updating the code to use the 64bit version of mongodb and changing th…

…e database directories to be master and slave
  • Loading branch information...
1 parent fb1ed0b commit 65c52c99bf37c4549114db54630c2cc761862f77 Johnathon Hornbeck committed with atmos Sep 4, 2009
Showing with 12 additions and 5 deletions.
  1. +12 −5 cookbooks/mongodb/recipes/default.rb
@@ -3,7 +3,14 @@
# Recipe:: default
-directory "/data/db" do
+directory "/data/master" do
+ owner node[:owner_name]
+ group node[:owner_name]
+ mode 0755
+ recursive true
+end
+
+directory "/data/slave" do
owner node[:owner_name]
group node[:owner_name]
mode 0755
@@ -12,10 +19,10 @@
execute "install-mongodb" do
command %Q{
- curl -O http://downloads.mongodb.org/linux/mongodb-linux-i686-1.0.0.tgz &&
- tar zxvf mongodb-linux-i686-1.0.0.tgz &&
- mv mongodb-linux-i686-1.0.0 /usr/local/mongodb &&
- rm mongodb-linux-i686-1.0.0.tgz
+ curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-1.0.0.tgz &&
+ tar zxvf mongodb-linux-x86_64-1.0.0.tgz &&
+ mv mongodb-linux-x86_64-1.0.0 /usr/local/mongodb &&
+ rm mongodb-linux-x86_64-1.0.0.tgz
}
not_if { File.directory?('/usr/local/mongodb') }
end

0 comments on commit 65c52c9

Please sign in to comment.