• This repository has been archived on 18/May/2021
  • Stars
    star
    179
  • Rank 214,039 (Top 5 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created about 11 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The fastest way to run Chef cookbooks

chef-runner - The fastest way to run Chef cookbooks

Build Status GoDoc

The goal of chef-runner is to speed up your Chef development and testing workflow by allowing you to change infrastructure code and get immediate feedback.

chef-runner was originally developed as a fast alternative to the painfully slow vagrant provision. The tool has since evolved and can now be used to rapidly provision not only local Vagrant machines but also remote hosts like EC2 instances.

To further shorten the feedback loop, chef-runner integrates with Vim so you don't have to leave your editor while hacking on recipes.

For more background, check out my blog post "Telling people about chef-runner".

Quick Start

Install chef-runner using one of the available installation methods.

Use chef-runner for local cookbook development with Vagrant:

$ cd my-awesome-cookook/
$ vagrant up
$ chef-runner # will run recipes/default.rb inside the Vagrant machine

Compose Chef run list using flexible recipe syntax:

$ chef-runner recipes/foo.rb
$ chef-runner ::foo                        # same as above
$ chef-runner dogs::bar
$ chef-runner dogs                         # same as dogs::default
$ chef-runner recipes/foo.rb bar dogs::baz # will run recipes in given order
$ chef-runner recipe[cats],dogs::bar       # standard Chef syntax

Provision a specific Vagrant machine in a multi-machine environment:

$ chef-runner -M db ...

Provision any Vagrant machine by specifying the machine's UUID:

$ chef-runner -M a748337 ...

Use chef-runner for local cookbook development with Test Kitchen:

$ kitchen converge default-ubuntu-1404
$ chef-runner -K default-ubuntu-1404 ...

Use chef-runner as a general purpose Chef provisioner for any system reachable over SSH:

$ cd directory-with-berksfile/
$ chef-runner -H [email protected] apt::default dogs::bar

(chef-runner automatically resolves cookbook dependencies using tools like Berkshelf or Librarian-Chef.)

Use chef-runner to provision the host system without running commands as root:

$ chef-runner -L --sudo=false

If required, install a specific version of Chef before provisioning:

$ chef-runner -i 11.12.8 ...

More Information

License

Please see LICENSE for licensing details.

Want to help?

See the Development wiki page for details on how to get the source code and build chef-runner locally.

Author

chef-runner is being developed by Mathias Lafeldt.

More Repositories

1

docker-simianarmy

Docker image of Netflix's Simian Army
Makefile
74
star
2

ps2rd

Collection of tools to remotely debug PS2 games
C
58
star
3

chaosmonkey

Go client to the Chaos Monkey REST API
Go
55
star
4

skeleton-cookbook

A testable skeleton cookbook for you or your team
Ruby
31
star
5

dilbert-feed

Enjoy Dilbert in your RSS feed reader without any ads
Rust
29
star
6

ps2logo

PS2 Logo Decryptor
Go
27
star
7

docker-ps2dev

A Docker Image for PS2 Development
Shell
21
star
8

dotfiles

My dotfiles
Python
20
star
9

serverless-skeleton

A Serverless skeleton project using Go
Makefile
19
star
10

pkgcloud

Talk to the packagecloud API, in Go
Go
18
star
11

codebreaker-rs

A Rust library to decrypt & encrypt any cheat code for CodeBreaker PS2
Rust
18
star
12

aws-region-nearby

A Rust library to find the nearest AWS region to a given location
Rust
17
star
13

google-python-class

[Mirror] Google's Python Class Exercises
Python
16
star
14

libbig_int

Portable C library to calculate integers and bitsets of arbitrary length
C
15
star
15

romdirfs

Userspace filesystem to access IOP modules in PS2 IOPRP images and BIOS dumps
C
15
star
16

graphql-rust-resolvers

GraphQL Rust resolvers + Deno Deploy = ๐Ÿš€
JavaScript
14
star
17

terraform-provider-launchdarkly

Terraform Provider for LaunchDarkly
Go
13
star
18

camplight

Python implementation of the Campfire API
Python
13
star
19

ghstatus

Go library & tool to talk to GitHub's system status API
Go
12
star
20

cb2util

CodeBreaker PS2 File Utility
C
12
star
21

launchdarkly-dynamo-store

DynamoDB Store for LaunchDarkly's Go SDK
Go
11
star
22

lambda-sqs-example

Lambda SQS Example using Serverless Framework and Go
Makefile
10
star
23

knife-cookbook-readme

Knife plugin to generate README.md from metadata.rb
Ruby
10
star
24

rdd.py

Python implementation of the Readability Shortener API
Shell
9
star
25

docker-ps3dev

A Docker Image for PS3 Development
Shell
8
star
26

roxor

Tool to crack XOR-encrypted passwords
Rust
8
star
27

sysrq

Go client to the Linux SysRq interface
Go
7
star
28

docker-serverless

A Docker image for Serverless development & deployment
Dockerfile
7
star
29

git-cookbook

Chef cookbook that installs Git from source and optionally configures it
Ruby
7
star
30

netlify-edge-bootstrap

Learn how Netlify Edge Functions work under the hood
TypeScript
6
star
31

inspeqtor-cookbook

Chef cookbook to install and configure Inspeqtor
Ruby
6
star
32

xpcrypt

Xploder PSX Crypto Tool
C
6
star
33

pbuilder-cookbook

Chef cookbook that installs and configures pbuilder. Provides LWRP to set up chroot environments.
Ruby
5
star
34

rbenv-man

rbenv plugin to easily access man pages for current Ruby version
Shell
5
star
35

ck

The ConvertKit Tool
Go
4
star
36

cmake-ps2

Bringing the powerful CMake build system to the PS2 console
C
4
star
37

mlafeldt.github.io

My old blog, now redirecting to https://sharpend.io
HTML
4
star
38

ps2dev-cookbook

Chef cookbook that installs a full-fledged PS2 development environment
Ruby
4
star
39

gbp-cookbook

Chef cookbook that installs and configures git-buildpackage
Ruby
3
star
40

protips

My Protipsโ„ข
Shell
3
star
41

whatcdkisit

What CDK is it?
TypeScript
3
star
42

ps2dev-box

A Virtual Machine for PS2 Development
Shell
3
star
43

docker-fpm-cook

2
star
44

deno-memleak

Rust
2
star
45

sharness-cookbook

Chef cookbook that installs Sharness
Ruby
2
star
46

CB2crypt

CodeBreaker PS2 Crypto Program
C
2
star
47

psx-demo-codes

Playstation Demo Code Collection
2
star
48

opensslca

Basic CA functionality that can be used by .NET applications
C
2
star
49

up-skeleton

A skeleton Go service deployed via Up
Go
2
star
50

homebrew-formulas

Install my tools like a boss
Ruby
2
star
51

libcheats

Portable C library to read, manipulate, and write cheat codes in text format
C
2
star
52

dcos-dl

Download the Mesosphere DCOS Community Edition
Shell
1
star
53

counter-worker

Rust
1
star
54

ops2m

OPS2M Config Cryptor
C
1
star
55

ipgen

Simple command-line tool to generate IP addresses
Python
1
star