- Install Virtualbox and latest Vagrant
- Install chef-dk
- Install vagrant plugins (
vagrant plugin install <plugin_name>
):
- vagrant-berkshelf
- vagrant-omnibus
- vagrant-hostsupdater (optional)
- Configure Vagrantfile and application/environment cookbooks.
vagrant up
- Install Chef (you can use Debian repository, omnibus installer or any other installer source)
- Install chef-dk
- Copy repository to your server
- Create production "role" cookbook
- Vendor cookbooks from Berksfile to cookbooks folder (
berks vendor <cookbooks_path>
) - Create production role (production.rb)
- Create solo.rb and solo.json files (you can use examples from "chef" folder) Please note: you can use only absolute paths in solo.rb file
- Run chef-solo (
sudo chef-solo -c solo.rb
)