Skip to content

Instantly share code, notes, and snippets.

@jhulten
Created August 15, 2011 22:44
Show Gist options
  • Save jhulten/1148074 to your computer and use it in GitHub Desktop.
Save jhulten/1148074 to your computer and use it in GitHub Desktop.
general knife.rb for a repo
current_dir = File.dirname(__FILE__)
ORG = "my_hosted_chef_org"
log_level :info
log_location STDOUT
node_name "#{ENV['USER']}"
client_key "#{current_dir}/#{ENV['USER']}.pem"
validation_client_name "#{ORG}-validator"
validation_key "#{current_dir}/#{ORG}-validator.pem"
chef_server_url "https://api.opscode.com/organizations/#{ORG}"
cache_type 'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ["#{current_dir}/../cookbooks"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment