Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A blank Chef repository - use as a base to build your own
Ruby
Branch: master
Pull request Compare This branch is 113 commits ahead, 20 commits behind chef:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
cookbooks
data_bags
.gitignore
.gitmodules
Capfile
Gemfile
README.md
Rakefile
chef-solo.tar.gz
chefignore

README.md

Develop

Checkout

gem install chef
git clone git@github.com:joeyates/chef-repo.git

Databags

Decrypt:

rake "databag:encrypted:extract[users,all,/PATH/TO/antani_data_bag_key]" > all.json

Encrypt:

rake "antani:encrypt[/Users/joe/antani_data_bag_key]"
git add data_bags/users/all.json

Commit

rake antani:tarball
git add chef-solo.tar.gz
git commit

Host Setup

Setup public key authentication

$ ssh root@antani.co.uk "mkdir -p /root/.ssh && chmod 0700 /root/.ssh"
$ ssh-copy-id -i PUBLIC_KEY root@antani.co.uk

Install ruby and chef-solo

This is done from you local machine, using Capistrano.

$ cap chef:bootstrap TARGET=$ANTANI SECRET_KEY=/PATH/TO/antani_data_bag_key

Deploy

Via capistrano

$ cap chef:run_recipes TARGET=$ANTANI

On host

sudo chef-solo -r https://github.com/joeyates/chef-repo/raw/master/chef-solo.tar.gz

Project Layout

See the original README: https://raw.github.com/opscode/chef-repo/master/README.md

Something went wrong with that request. Please try again.