Last active
August 29, 2015 14:17
-
-
Save taavituisk/4aac140a7323e13d35b8 to your computer and use it in GitHub Desktop.
knife config file for multiple environments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
current_orgenv = ENV['CHEF_ORG'] + ENV['CHEF_MYENV'] | |
current_dir = File.dirname(__FILE__) | |
user = ENV['CHEF_USER'] || ENV['USER'] | |
node_name user | |
client_key "#{ENV['HOME']}/.chef/#{current_orgenv}_#{user}.pem" | |
validation_client_name "#{ENV['CHEF_ORG']}-validator" | |
validation_key "#{ENV['HOME']}/.chef/#{current_orgenv}_validator.pem" | |
chef_server_url "#{ENV['CHEF_SERVER']}" | |
syntax_check_cache_path "#{ENV['HOME']}/.chef/syntax_check_cache" | |
cookbook_path ["#{current_dir}/../cookbooks"] | |
cookbook_copyright "Stratasys Inc." | |
cookbook_license "none" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment