This repository is DEPRECATED, see https://github.com/mconf-cookbooks/mconf-live-solo
Ruby HTML Perl C Shell Python Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
cookbooks
data_bags
environments
roles
utils
vagrant
.chef-version
.gitignore
.ruby-version
Cheffile
Cheffile.lock
Gemfile
Gemfile.lock
LICENSE.header
README.md
Vagrantfile

README.md

chef-recipes

This repository stores contains all chef cookbooks used by Mconf. It is a collection of the cookbooks developed for Mconf plus all of their dependencies. For the latest versions of the cookbooks and to install the cookbooks in your own setup, see https://github.com/mconf-cookbooks/.

To see the version of chef being used see .chef-version.

Working with librarian

Install it:

bundle install

To add a cookbook, first add it to Cheffile and then (note: it's always usefull to use --verbose with librarian):

bundle exec librarian-chef install [--verbose]

Update a cookbook:

bundle exec librarian-chef update mconf-lb [--verbose]

Vagrant

Install Vagrant.

Install plugins for Vagrant:

vagrant plugin install vagrant-lxc
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-librarian-chef
vagrant plugin install vagrant-omnibus

Download the dependencies:

bundle install
rbenv rehash

cd vagrant/
bundle exec librarian-chef install [--verbose]

Create the VM:

cd ../
vagrant up

Log into the VM

vagrant ssh
cd vagrant/
bundle install

Now you can run chef-solo as in:

sudo chef-solo -c /vagrant/config/solo.rb -j utils/mconf-web.json

Running chef-solo

Install the version of chef described in .chef-version and then run chef-solo as in the example below:

sudo chef-solo -c config/solo.rb -j utils/mconf-web.json