This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root_path = File.join(File.dirname(__FILE__), '.chef') | |
chef_data_bag 'clients' | |
%w(chef-validator blp-validator).each do |name| | |
key = OpenSSL::PKey::RSA.new IO.read(File.join(root_path, "#{name}.pem")) | |
chef_data_bag_item name do | |
data_bag 'clients' | |
raw_data({ | |
chef_server: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine 'chef-server' do | |
run_list ['chef-server::default'] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-2.0.0-p451 (#<Kitchen::Driver::Vagrant:0x007f9faa03c4c8>):2 > ls | |
Kitchen::Logging#methods: banner debug error fatal info warn | |
Kitchen::Driver::Base#methods: [] config_keys diagnose instance name validate_config! | |
Kitchen::Driver::SSHBase#methods: login_command ssh | |
Kitchen::Driver::Vagrant#methods: converge create default_box_url destroy instance= setup verify verify_dependencies | |
self.methods: __pry__ | |
instance variables: @config @instance @vagrant_root @vagrantfile_created | |
locals: _ __ _dir_ _ex_ _file_ _in_ _out_ _pry_ | |
ruby-2.0.0-p451 (#<Kitchen::Driver::Vagrant:0x007f9faa03c4c8>):2 > puts Kitchen::VERSION | |
1.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jbellone@dc110-05-298dx:~/Projects/vagrant-berkshelf % vagrant plugin install vagrant-berkshelf-1.4.0.dev1.gem 11:58:26 | |
Installing the 'vagrant-berkshelf-1.4.0.dev1.gem' plugin. This can take a few minutes... | |
/Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/parallel_workers/unix_worker.rb:19:in `initialize': uninitialized constant Net::HTTP::Persistent (NameError) | |
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/parallel_workers.rb:14:in `new' | |
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/parallel_workers.rb:14:in `worker_pool' | |
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/installer.rb:281:in `install_in_parallel' | |
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/installer.rb:95:in `run' | |
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/installer.rb:15:in `install' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANT_HTTP_PROXY=$HTTP_PROXY | |
VAGRANT_HTTPS_PROXY=$HTTPS_PROXY | |
VAGRANT_NO_PROXY=$NO_PROXY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ubuntu | |
maintainer John Bellone <john.bellone.jr@gmail.com> | |
# install essentials | |
run apt-get -y update | |
run apt-get -y install build-essential git-core | |
# install rbenv | |
run git clone https://github.com/sstephenson/rbenv /usr/local/rbenv | |
run mkdir -p /usr/local/rbenv/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ubuntu | |
maintainer John Bellone <john.bellone.jr@gmail.com> | |
# install essentials | |
run apt-get -y update | |
run apt-get -y install build-essential git-core | |
# install rbenv | |
run git clone https://github.com/OiNutter/nodenv /usr/local/nodenv | |
run mkdir -p /usr/local/nodenv/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
site "http://community.opscode.com/api/v1" | |
cookbook 'ruby_build', :git => "git://github.com/fnichol/chef-ruby_build" | |
cookbook 'rbenv', :git => "git://github.com/fnichol/chef-rbenv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Some settings that are necessary for the Chef Solo to work | |
// as expected. If you use the Ruby DSL rather than JSON you | |
// can omit a few of these. | |
"name": "rack_application", | |
"description": "A simple role for a Rack application.", | |
"chef_type": "role", | |
"json_class": "Chef::Role", | |
// All of the recipes that we want to load into the VM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
Vagrant.configure("2") do |config| | |
# Match the base box name with the definition that your exported. | |
config.vm.box = "ubuntu-12.04-i386" | |
# We'll want to access our site on localhost. | |
config.vm.network :forwarded_port, guest: 8080, host: 8080 | |
# Specific changes for the VB provider. Additional ones can be |