Skip to content

Instantly share code, notes, and snippets.

@jmassardo
Created February 24, 2020 22:50
Show Gist options
  • Save jmassardo/ca9c8d56ed1f251f2fb1e4dea642e46e to your computer and use it in GitHub Desktop.
Save jmassardo/ca9c8d56ed1f251f2fb1e4dea642e46e to your computer and use it in GitHub Desktop.
Sample knife.rb or config.rb for Chef
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "YOUR_CHEF_SERVER_USERNAME"
client_key "#{current_dir}/#{node_name}.pem"
chef_server_url "https://CHEF_SERVER_FQDN/organizations/CHEF_ORG_SHORT_NAME"
cookbook_path ["#{current_dir}/../cookbooks"]
#ssl_verify_mode :verify_none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment