- http://www.vagrantup.com/downloads.html
- Download and install vagrant_1.6.3.msi
- Reboot
- [run]
vagrant box add opscode_ubuntu-12.04_chef-11.4.0 https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.0.box
- http://gnuwin32.sourceforge.net/packages/gtar.htm
- Download and install http://gnuwin32.sourceforge.net/downlinks/tar-bin.php
-
Ruby 1.9.3-p545 1. Install in C:\Ruby193
-
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe 1. Extract in C:\Ruby193\DevKit 2. [run]
cd C:\Ruby193\DevKit
3. [run]ruby dk.rb init
4. [run]ruby dk.rb install
-
[run]
gem install librarian -v 0.1.2 --no-ri --no-rdoc
-
[run]
gem install librarian-chef -v 0.0.3 --no-ri --no-rdoc
-
Go to your proyect folder (for example cd C:\project)
-
[run]
librarian-chef init
-
Add your recipes to the Cheffile, for example:
#!/usr/bin/env ruby #^syntax detection site 'http://community.opscode.com/api/v1' cookbook 'mysql', '= 5.3.6'
-
[run]
librarian-chef install
-
[run]
vagrant init
-
Configure yout Vagrantfile and add your recipes, for example:
# encoding: utf-8 # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "opscode_ubuntu-12.04_chef-11.4.0" config.ssh.forward_agent = true config.vm.network :forwarded_port, guest: 3306, host: 3307 config.vm.synced_folder "dev/", "/var/www/nginx-default" config.vm.provision :chef_solo do |chef| chef.cookbooks_path = ["cookbooks"] chef.add_recipe 'mysql::server' chef.json = { :mysql => { :server_root_password => 'thepass', :allow_remote_root => true } } end end
-
[run]
vagrant up
If you get an error message like while installing recipes:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
Install the certified gem (https://github.com/stevegraham/certified)
gem install certified
And add to the Cheffile
require 'certified'
-- OR --
Download and copy to your user folder the following certificate:
And add the SSL_CERT_FILE environment variable:
- set SSL_CERT_FILE=C:\Users\YOURUSER\ca-bundle.crt