Browse files

--

  • Loading branch information...
1 parent 1ef147e commit f0fa1f76dae6dd05e0d2619d86eb8af2c2b50fd5 @sergio1990 sergio1990 committed Feb 10, 2014
View
0 basic_setup/.vagrant → basic_setup/.vagrant.v1.1392043104
File renamed without changes.
View
1 basic_setup/.vagrant/machines/default/berkshelf
@@ -0,0 +1 @@
+/Users/sergey/.berkshelf/default/vagrant/berkshelf-20140210-22950-ytst6q-default
View
1 basic_setup/.vagrant/machines/default/virtualbox/action_provision
@@ -0,0 +1 @@
+1392043211
View
1 basic_setup/.vagrant/machines/default/virtualbox/action_set_name
@@ -0,0 +1 @@
+1392043211
View
1 basic_setup/.vagrant/machines/default/virtualbox/id
@@ -0,0 +1 @@
+38b596fd-0eb6-49c7-9a19-504edb7d12dc
View
3 basic_setup/Gemfile
@@ -1,4 +1,5 @@
source "https://rubygems.org"
gem 'knife-solo'
-gem 'librarian-chef'
+gem 'librarian-chef'
+gem "berkshelf", github: "berkshelf/berkshelf"
View
69 basic_setup/Gemfile.lock
@@ -1,7 +1,41 @@
+GIT
+ remote: git://github.com/berkshelf/berkshelf.git
+ revision: e30ebe6c6feb0478d6297c4d45f04dd5f6619f86
+ specs:
+ berkshelf (3.0.0.beta6)
+ addressable (~> 2.3.4)
+ berkshelf-api-client (~> 1.1)
+ buff-config (~> 0.2)
+ buff-extensions (~> 0.4)
+ buff-shell_out (~> 0.1)
+ faraday (~> 0.8.5)
+ minitar (~> 0.5.4)
+ octokit (~> 2.6)
+ retryable (~> 1.3.3)
+ ridley (~> 2.3)
+ solve (>= 0.8.0)
+ thor (~> 0.18.0)
+
GEM
remote: https://rubygems.org/
specs:
+ addressable (2.3.5)
archive-tar-minitar (0.5.2)
+ berkshelf-api-client (1.1.1)
+ faraday (~> 0.8.5)
+ buff-config (0.4.0)
+ buff-extensions (~> 0.3)
+ varia_model (~> 0.1)
+ buff-extensions (0.5.0)
+ buff-ignore (1.1.1)
+ buff-ruby_engine (0.1.0)
+ buff-shell_out (0.1.1)
+ buff-ruby_engine (~> 0.1.0)
+ celluloid (0.15.2)
+ timers (~> 1.1.0)
+ celluloid-io (0.15.0)
+ celluloid (>= 0.15.0)
+ nio4r (>= 0.5.0)
chef (11.10.0)
chef-zero (~> 1.7, >= 1.7.2)
diff-lcs (~> 1.2, >= 1.2.4)
@@ -30,6 +64,8 @@ GEM
coderay (1.1.0)
diff-lcs (1.2.5)
erubis (2.7.0)
+ faraday (0.8.9)
+ multipart-post (~> 1.2.0)
hashie (2.0.5)
highline (1.6.20)
ipaddress (0.8.0)
@@ -47,19 +83,25 @@ GEM
librarian (~> 0.1.0)
method_source (0.8.2)
mime-types (1.25.1)
+ minitar (0.5.4)
mixlib-authentication (1.3.0)
mixlib-log
mixlib-cli (1.4.0)
mixlib-config (2.1.0)
mixlib-log (1.6.0)
mixlib-shellout (1.3.0)
moneta (0.6.0)
+ multipart-post (1.2.0)
+ net-http-persistent (2.9.3)
net-ssh (2.8.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-multi (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0)
+ nio4r (1.0.0)
+ octokit (2.7.1)
+ sawyer (~> 0.5.2)
ohai (6.20.0)
ipaddress
mixlib-cli
@@ -77,14 +119,41 @@ GEM
rack (1.5.2)
rest-client (1.6.7)
mime-types (>= 1.16)
+ retryable (1.3.5)
+ ridley (2.4.3)
+ addressable
+ buff-config (~> 0.2)
+ buff-extensions (~> 0.3)
+ buff-ignore (~> 1.1)
+ buff-shell_out (~> 0.1)
+ celluloid (~> 0.15)
+ celluloid-io (~> 0.15)
+ erubis
+ faraday (~> 0.8.4)
+ hashie (>= 2.0.2)
+ json (>= 1.7.7)
+ mixlib-authentication (>= 1.3.0)
+ net-http-persistent (>= 2.8)
+ retryable
+ solve (>= 0.4.4)
+ varia_model (~> 0.3)
+ sawyer (0.5.3)
+ addressable (~> 2.3.5)
+ faraday (~> 0.8, < 0.10)
slop (3.4.7)
+ solve (0.8.2)
systemu (2.5.2)
thor (0.18.1)
+ timers (1.1.0)
+ varia_model (0.3.2)
+ buff-extensions (~> 0.2)
+ hashie (>= 2.0.2)
yajl-ruby (1.2.0)
PLATFORMS
ruby
DEPENDENCIES
+ berkshelf!
knife-solo
librarian-chef
View
10 basic_setup/Vagrantfile
@@ -1,7 +1,10 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
-Vagrant::Config.run do |config|
+Vagrant.configure("2") do |config|
+
+ Vagrant.require_plugin "vagrant-berkshelf"
+ Vagrant.require_plugin "vagrant-omnibus"
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@@ -11,7 +14,10 @@ Vagrant::Config.run do |config|
VAGRANT_JSON = JSON.parse(Pathname(__FILE__).dirname.join('nodes', 'vagrant.json').read)
- config.vm.provision :shell, :inline => "curl -L https://www.opscode.com/chef/install.sh | bash"
+ # config.vm.provision :shell, :inline => "curl -L https://www.opscode.com/chef/install.sh | bash"
+
+ config.omnibus.chef_version = :latest
+ config.berkshelf.enabled = false
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["site-cookbooks", "cookbooks"]
View
1 basic_setup/nodes/188.226.158.112.json
@@ -0,0 +1 @@
+{"run_list":[]}
View
5 basic_setup/nodes/vagrant.json
@@ -19,7 +19,10 @@
"packages": ["libmysqlclient-dev"]
}
},
+ "ruby": {
+ "install_version": "ruby-2.0.0-p353"
+ },
"run_list": [
- "recipe[nginx::source]", "recipe[rvm::system_install]", "recipe[mysql::server]", "recipe[mysql::client]"
+ "recipe[nginx::source]", "recipe[rvm::system_install]", "recipe[mysql::server]", "recipe[mysql::client]", "recipe[ruby::install]"
]
}
View
1 basic_setup/site-cookbooks/ruby/attributes/default.rb
@@ -0,0 +1 @@
+default['ruby']['install_version'] = 'ruby-2.0.0-p353'
View
15 basic_setup/site-cookbooks/ruby/metadata.rb
@@ -0,0 +1,15 @@
+name 'ruby'
+maintainer 'AlterEGO Labs'
+maintainer_email 'sergeg1990@gmail.com'
+license 'Apache 2.0'
+description 'Installs ruby through rvm'
+long_description ''
+version '0.0.1'
+recipe 'ruby::install', 'Installs packages required for mysql clients using run_action magic'
+
+# actually tested on
+supports 'redhat'
+supports 'amazon'
+supports 'centos'
+supports 'debian'
+supports 'ubuntu'
View
4 basic_setup/site-cookbooks/ruby/recipes/install.rb
@@ -0,0 +1,4 @@
+execute "install_ruby_through_rvm" do
+ command "rvm install #{default['ruby']['install_version']}"
+ action :run
+end
View
3 basic_setup/solo.rb
@@ -0,0 +1,3 @@
+file_cache_path "/tmp/chef-solo"
+cookbook_path [ "/tmp/chef-solo/site-cookbooks",
+ "/tmp/chef-solo/cookbooks" ]

0 comments on commit f0fa1f7

Please sign in to comment.