diff --git a/Gemfile b/Gemfile index 83cb3ea087b1b5e93837ab2856bf568c985d6882..0417dfc05dd6607d6cef36078e165639cf678715 100644 --- a/Gemfile +++ b/Gemfile @@ -3,6 +3,7 @@ source 'http://rubygems.org' gem 'rails', '>= 3.0.0' gem 'bundler', '>= 1.0.0' +gem "chef" #Security gem 'devise', '1.1.3' diff --git a/Gemfile.lock b/Gemfile.lock index 6d809ac8745ab4d0c41daa00d37cd2ff2dadb5cf..f02228bd7aa175289e434cc866a2ee3887ddb16f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -108,6 +108,7 @@ GEM bson (1.1) bson_ext (1.1) builder (2.1.2) + bunny (0.6.0) capistrano (2.5.19) highline net-scp (>= 1.0.0) @@ -121,6 +122,20 @@ GEM rack (>= 1.0.0) rack-test (>= 0.5.4) selenium-webdriver (>= 0.0.3) + chef (0.9.12) + bunny (>= 0.6.0) + erubis + extlib + highline + json (>= 1.4.4, <= 1.4.6) + mixlib-authentication (>= 1.1.0) + mixlib-cli (>= 1.1.0) + mixlib-config (>= 1.1.2) + mixlib-log (>= 1.2.0) + moneta + ohai (>= 0.5.7) + rest-client (>= 1.0.4, < 1.7.0) + uuidtools childprocess (0.1.3) ffi (~> 0.6.3) columnize (0.3.1) @@ -148,6 +163,7 @@ GEM erubis (2.6.6) abstract (>= 1.0.0) eventmachine (0.12.10) + extlib (0.9.15) factory_girl (1.3.2) factory_girl_rails (1.0) factory_girl (~> 1.3) @@ -175,8 +191,14 @@ GEM rest-client mini_magick (2.3) subexec (~> 0.0.4) + mixlib-authentication (1.1.4) + mixlib-log + mixlib-cli (1.2.0) + mixlib-config (1.1.2) + mixlib-log (1.2.0) mocha (0.9.8) rake + moneta (0.6.0) mongo (1.1) bson (>= 1.0.5) net-scp (1.0.4) @@ -187,6 +209,13 @@ GEM net-ssh-gateway (1.0.1) net-ssh (>= 1.99.1) nokogiri (1.4.3.1) + ohai (0.5.8) + extlib + json (>= 1.4.4, <= 1.4.6) + mixlib-cli + mixlib-config + mixlib-log + systemu plucky (0.3.6) mongo (~> 1.1) polyglot (0.3.1) @@ -238,6 +267,7 @@ GEM json_pure rubyzip subexec (0.0.4) + systemu (1.2.0) term-ansicolor (1.0.5) thin (1.2.7) daemons (>= 1.0.9) @@ -267,6 +297,7 @@ DEPENDENCIES bundler (>= 1.0.0) capybara (~> 0.3.9) carrierwave! + chef cucumber-rails (= 0.3.2) database_cleaner devise (= 1.1.3) diff --git a/chef/cookbooks/bootstrap/bootstrap.json b/chef/cookbooks/bootstrap/bootstrap.json new file mode 100644 index 0000000000000000000000000000000000000000..328415e15f47fdd85bf2fe7c96ec1cc73b3ac2c1 --- /dev/null +++ b/chef/cookbooks/bootstrap/bootstrap.json @@ -0,0 +1 @@ +{"recipes": ["bootstrap::default" ] } diff --git a/chef/cookbooks/bootstrap/recipes/default.rb b/chef/cookbooks/bootstrap/recipes/default.rb new file mode 100644 index 0000000000000000000000000000000000000000..bf7b5da36171cac9b0815872a78f49ee2b9f1796 --- /dev/null +++ b/chef/cookbooks/bootstrap/recipes/default.rb @@ -0,0 +1,9 @@ +execute "bundler deps" do + command "yum install -y cpio" +end +execute "nokogiri deps" do + command "yum install -y libxml2-devel libxslt-devel" +end +execute "eventmachine deps" do + command "yum install -y gcc-c++" +end \ No newline at end of file diff --git a/chef/cookbooks/main/main.json b/chef/cookbooks/main/main.json new file mode 100644 index 0000000000000000000000000000000000000000..9d04fb02bbb7cc554eeec056b5ee3c950ba931f7 --- /dev/null +++ b/chef/cookbooks/main/main.json @@ -0,0 +1 @@ +{"recipes": ["main::default" ] } diff --git a/chef/cookbooks/main/recipes/default.rb b/chef/cookbooks/main/recipes/default.rb new file mode 100644 index 0000000000000000000000000000000000000000..2cb7037e0b1e1dda085b3605a991f530d04d7440 --- /dev/null +++ b/chef/cookbooks/main/recipes/default.rb @@ -0,0 +1,3 @@ +execute "say hello" do + command "echo welcome to diaspora chef" +end