Skip to content

Instantly share code, notes, and snippets.

@aliang
Forked from wilmoore/knife.rb
Created July 23, 2012 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aliang/3162841 to your computer and use it in GitHub Desktop.
Save aliang/3162841 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