Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
97 lines (55 sloc) 1.57 KB

Installation

pip install fabric-provision

Usage

  • Create a fabfile.py
from fabric.api import *
from provision import chef, provision

env.hosts = ['vagrant@localhost:2222']

chef.add_recipe('python')
  • Assuming you have a Vagrant machine running locally, you can provision it instantly:
$ fab provision

What it does

  • apt-get update
  • apt-get upgrade
  • Install a current version of Chef
  • Run your configured recipes

API

Settings