Skip to content

Instantly share code, notes, and snippets.

@till
Created October 8, 2010 16:44
Show Gist options
  • Save till/617096 to your computer and use it in GitHub Desktop.
Save till/617096 to your computer and use it in GitHub Desktop.
this_dir = File.dirname(__FILE__)
chef_dir = "#{this_dir}/chef-solo"
if !File.exist?(chef_dir) then
Dir.mkdir(chef_dir)
end
file_cache_path "#{chef_dir}"
cookbook_path [ "#{chef_dir}/cookbooks" ]
role_path "#{chef_dir}/roles"
recipe_url "http://dev.local/till/recipes.tgz"
@adamhjk
Copy link

adamhjk commented Oct 8, 2010

chef > Chef::Config.from_file("/etc/chef/client.rb")
=> "opscode-validator"
chef > Chef::Config.role_path
=> "/var/chef/roles"
chef >

@adamhjk
Copy link

adamhjk commented Oct 8, 2010

chef > Chef::Config.from_file("/etc/chef/client.rb")
=> "opscode-validator"
chef > Chef::Config.role_path
=> "/var/chef/roles"
chef >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment