diff --git a/chef/cookbooks/bootstrap/bootstrap.json b/chef/cookbooks/bootstrap/bootstrap.json deleted file mode 100644 index 328415e15f47fdd85bf2fe7c96ec1cc73b3ac2c1..0000000000000000000000000000000000000000 --- a/chef/cookbooks/bootstrap/bootstrap.json +++ /dev/null @@ -1 +0,0 @@ -{"recipes": ["bootstrap::default" ] } diff --git a/chef/cookbooks/centos/bootstrap.json b/chef/cookbooks/centos/bootstrap.json new file mode 100644 index 0000000000000000000000000000000000000000..a6065ab26c83d2c886be4df5648324d8d8052c97 --- /dev/null +++ b/chef/cookbooks/centos/bootstrap.json @@ -0,0 +1 @@ +{"recipes": ["centos::bootstrap" ] } diff --git a/chef/cookbooks/centos/files/default/10gen.repo b/chef/cookbooks/centos/files/default/10gen.repo new file mode 100644 index 0000000000000000000000000000000000000000..347aaa9a02ea862ba629d354a1042c9ed3047e19 --- /dev/null +++ b/chef/cookbooks/centos/files/default/10gen.repo @@ -0,0 +1,5 @@ +[10gen] +name=10gen Repository +baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/ +gpgcheck=0 + diff --git a/chef/cookbooks/centos/main.json b/chef/cookbooks/centos/main.json new file mode 100644 index 0000000000000000000000000000000000000000..8ef7610f0feb458cebbd8216f15a8731510746b3 --- /dev/null +++ b/chef/cookbooks/centos/main.json @@ -0,0 +1 @@ +{"recipes": ["centos::main" ] } diff --git a/chef/cookbooks/bootstrap/recipes/default.rb b/chef/cookbooks/centos/recipes/bootstrap.rb similarity index 100% rename from chef/cookbooks/bootstrap/recipes/default.rb rename to chef/cookbooks/centos/recipes/bootstrap.rb diff --git a/chef/cookbooks/centos/recipes/image_magick.rb b/chef/cookbooks/centos/recipes/image_magick.rb new file mode 100644 index 0000000000000000000000000000000000000000..8e4368fedd13596d50bebaea226f35c2dfed58d4 --- /dev/null +++ b/chef/cookbooks/centos/recipes/image_magick.rb @@ -0,0 +1,3 @@ +execute "install ImageMagick" do + command "yum install -y ImageMagick" +end diff --git a/chef/cookbooks/centos/recipes/main.rb b/chef/cookbooks/centos/recipes/main.rb new file mode 100644 index 0000000000000000000000000000000000000000..3b9086de8737490034a4bf71a724d4394cf43b7b --- /dev/null +++ b/chef/cookbooks/centos/recipes/main.rb @@ -0,0 +1,6 @@ +execute "say hello" do + command "echo welcome to diaspora chef" +end + +include_recipe "centos::image_magick" +include_recipe "centos::mongo_db" diff --git a/chef/cookbooks/centos/recipes/mongo_db.rb b/chef/cookbooks/centos/recipes/mongo_db.rb new file mode 100644 index 0000000000000000000000000000000000000000..9bfc958b59dccd87b7c4f8c0925619a096323f8d --- /dev/null +++ b/chef/cookbooks/centos/recipes/mongo_db.rb @@ -0,0 +1,11 @@ +cookbook_file "/etc/yum.repos.d/10gen.repo" do + source "10gen.repo" +end + +execute "refresh yum" do + command "yum update -y" +end + +execute "install mongo" do + command "yum install -y mongo-stable" +end diff --git a/chef/cookbooks/main/main.json b/chef/cookbooks/main/main.json deleted file mode 100644 index 9d04fb02bbb7cc554eeec056b5ee3c950ba931f7..0000000000000000000000000000000000000000 --- a/chef/cookbooks/main/main.json +++ /dev/null @@ -1 +0,0 @@ -{"recipes": ["main::default" ] } diff --git a/chef/cookbooks/main/recipes/default.rb b/chef/cookbooks/main/recipes/default.rb deleted file mode 100644 index 2cb7037e0b1e1dda085b3605a991f530d04d7440..0000000000000000000000000000000000000000 --- a/chef/cookbooks/main/recipes/default.rb +++ /dev/null @@ -1,3 +0,0 @@ -execute "say hello" do - command "echo welcome to diaspora chef" -end