Skip to content

Instantly share code, notes, and snippets.



Forked from benhoskings/chef.rb
Created Apr 13, 2010
What would you like to do?
def 'chef installed' do
requires 'chef', 'ohai'
define_var :server_name, :default => shell('hostname -f')
# this needs to go somewhere, like ~/solo.rb
solo_rb = %Q{
file_cache_path "/tmp/chef-solo"
cookbook_path "/tmp/chef-solo/cookbooks"
recipe_url ""
# somewhere like ~/chef.json
chef_json = %Q{
"bootstrap": {
"chef": {
"url_type": "http",
"init_style": "runit",
"path": "/srv/chef",
"serve_path": "/srv/chef",
"server_fqdn": "#{var :server_name}",
"webui_enabled": true
"run_list": [ "recipe[bootstrap::server]" ]
gem 'chef'
gem 'ohai'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment