Learning Chef.
Install VirtualBox and then Vagrant.
gem install berkshelf
vagrant plugin install vagrant-berkshelf
vagrant plugin install vagrant-omnibus
git clone [email protected]:zigomir/rainbox.git ~/.rainbox
# Windows users
cd C:\Users\<my-user>
git clone git://github.com/zigomir/rainbox.git .rainboxCreate Vagrantfile and Berksfile
touch Vagrantfile && touch BerksfileBerksfile content:
cookbook 'rainbox', path: '~/.rainbox'Vagrantfile content:
eval(File.open("#{Dir.home}/.rainbox/Vagrantfile").read, binding, __FILE__, __LINE__)project_name: <your-project-name>
box_name: precise64
box_url: http://files.vagrantup.com/precise64.box
memory: 512
guest_ip: 3.3.3.3
ports:
- {guest: 3000, host: 3000}
chef_conf:
servers:
- apache2
databases:
- postgres
packages:
- vim
languages:
ruby:
version: 2.0.0-p353berks install
vagrant upAdd recipes to metadata.rb with depends and then include them in recipes/default.rb with include_recipe.
Then run berks install.
Setup fresh Ubuntu with docker and then install stuff with docker, create an image, use images for prod servers