Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Created June 22, 2011 07:56
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save wilmoore/1039666 to your computer and use it in GitHub Desktop.
Save wilmoore/1039666 to your computer and use it in GitHub Desktop.
Base "knife" configuration for a standard chef-solo setup
# .chef/knife.rb
# SEE: http://wiki.opscode.com/display/chef/Troubleshooting+and+Technical+FAQ
# set some sensible defaults
current_dir = File.dirname(__FILE__)
user = ENV['OPSCODE_USER'] || ENV['USER']
log_level :debug
log_location STDOUT
node_name `hostname`
client_key ''
validation_client_name ''
validation_key "#{current_dir}/validation.pem"
chef_server_url ''
cache_type 'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path "#{current_dir}/../cookbooks"
cookbook_copyright 'Navigant, Inc.'
cookbook_license 'apachev2'
cookbook_email 'wil.moore@navigant.com'
environment_path "#{current_dir}/../environments"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment