Configuration management with Chef & Capistrano
Add this line to your application's Gemfile:
gem 'mana'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mana
Init project with Chef, Capistrano and Vagrant configs:
rake mana:install
Edit config/deploy.rb
to provide application name, SCM repository etc. and Chef cookbook params.
Edit Vagrantfile
to match your available Vagrant boxes and personal taste.
Edit Chef cookbooks under config/deploy/cookbooks
directory to add software.
Setup all software on server:
cap <stage> mana:setup
where <stage>
is server name. Individual stages can be added in config/deploy/
directory.
See default vagrant
stage for details.
Use ordinary cap deploy
-like stuff for later deploys and cap mana:install
for configuration upgrades.
Use cap -T mana
to see useful stuff added after this.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request