Project

bocuse

0.0
No commit activity in last 3 years
No release in over 3 years
bocuse teaches chef-solo a few tricks. A strict front-end to chef-solo, it reads a configuration syntax that is under source control and generates JSON for chef-solo. This library puts the full power of Ruby at your fingertips when composing configuration for your nodes using templates and helpers. It is the missing link between puppet and chef.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.2
~> 0.15
 Project Readme
bocuse - a new kind of chef

SYNOPSIS 

Bocuse is a special kind of chef - A front-end language to chef-solo. 

STATUS

Version 0.1.0 - This works for us. No warranties implied.

USAGE

The workflow will be 
  BOCUSE -> (bocuse compile) -> JSON -> (chef-solo) -> Machine Configuration
  
A bocuse configuration is hosted below config and looks like this:

  config/
    nodes/      # where all node descriptions live
    templates/  # where your templates live
    lib/        # helper code, will be in $:
    
To get started, create a file called 'config/node/a.rb' and put this into it: 

  node 'a' do |cfg|
    cfg.ip '1.2.3.4'
  end
  
If you now run 
  
  bocuse compile a
  
from the top-level directory, you'll get a JSON configuration like this one: 

  {"ip":"1.2.3.4"}
  
as output. 

Please see the examples directory for more examples. 

HACKING

1. Get gems: `bundle install`.
2. Verify all is ok: `rspec`.
3. Read.
4. Write spec.
5. Improve code.
6. Issue pull request with great documentation.
7. GOTO 3 UNLESS HAPPY.

AUTHORS

Florian Hanke (@ floere)
Kaspar Schiess (@ kschiess)
Jens-Christian Fischer (@ jcfischer)

LICENSE

MIT License - See LICENSE file for details. (Copyright 2012, Mobino SA)