This repo contains a configuration for Chef solo + Knife solo + Berkshelf tools for setting up and provisioning servers.
$ knife solo prepare -p 22 username@host
$ vim nodes/host.json
# Fill in like nodes/localhost.json
$ knife solo cook -p 22 username@host
$ gem install berkshelf
$ gem install knife-solo
$ knife solo init
# Some knife solo output. It should be using Berkshelf
$ mkdir site-cookbooks
$ knife cookbook create my_app -o site-cookbooks
Then edit the following files inside the site-cookbooks/my_app
folder:
metadata.rb
- add dependencies.recipes/default.rb
- create recipes for the cookbook. May use custom attributes.attributes/default.rb
- default attributes overrides.
When the cookbook is ready, add the cookbooks to the Berkshelf
file.