Chef cookbooks for common tasks
Ruby
Pull request Compare This branch is 11 commits behind caffeinehit:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coffeescript
nginx
nodejs
opscode @ 2dac572
sass/recipes
solr
upstart
.gitmodules
LICENSE
README.md

README.md

Cookbooks

A set of Chef cookbooks aimed at Python web applications. Make sure you also check out fabric-provision to launch chef right out of your fabfiles.

Some of these cookbooks depend on the originals provided by Opscode in their repository

This repository makes use of submodules, so make sure that you init them too:

$ git clone https://github.com/caffeinehit/cookbooks.git
$ cd cookbooks
$ git submodule init

nginx

The nginx recipe downloads, compiles and installs nginx.

  • Default attributes: here
  • Usage:

    include_recipe "nginx"
    

nodejs

The nodejs recipe downloads, compiles and installs node.

  • Default attributes: here
  • Usage:

    include_recipe "nodejs"
    

coffeescript

The coffeescript recipe downloads and installs coffee.

  • Default attributes: here
  • Usage:

    include_recipe "coffeescript"
    

sass

The sass recipe downloads and install sass.

  • Usage:

    include_recipe "sass"
    

solr

Installs jetty/solr to power your search. Override the schema.xml to suit the index to your needs.

upstart

Creates an upstart script you can use to control services you're deploying.

  • Usage:

    upstart_script "gunicorn" do
        user "application"
        command "python /home/application/manage.py run_gunicorn"
    end
    

    Use start gunicorn and stop gunicorn on your server or as a service inside Chef to start / stop gunicorn.

    The process will automatically create a /var/log/<username>/<process-name>.log file owned by the specified user - a bit like foreman does.