site_name = 'chef.io' user_name = 'alice' org_name = 'wonderland' home_on_win = 'C:/Users' conf_dir = nil if Dir.exist?("#{ENV['HOME']}/chef") then conf_dir = "#{ENV['HOME']}/chef/#{site_name}" else # on windows conf_dir = "#{home_on_win}/#{ENV['USERNAME']}/chef/#{site_name}" end current_dir = File.dirname(__FILE__) # .chef/knife.rb log_level :info log_location STDOUT node_name "#{user_name}" client_key "#{conf_dir}/#{user_name}.pem" # Validatorless Bootstrap #validation_client_name "#{org_name}-validator" validation_key "/nonexist" chef_server_url "https://api.opscode.com/organizations/#{org_name}" cache_type 'BasicFile' cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) cookbook_path [ "#{current_dir}/../cookbooks", "#{current_dir}/../vendor/cookbooks" ] cookbook_copyright "Alice Kingsleigh" cookbook_email "alice@mail.wonderland.example.com" cookbook_license "apachev2" #ssl_ca_path "/etc/ssl/certs" #ssl_ca_file "/etc/ssl/certs/ca.crt" trusted_certs_dir "#{conf_dir}/trusted_certs" verify_api_cert true # overridden by ssl_verify_mode (= :verify_peer) ssl_verify_mode :verify_peer knife[:editor] = 'vim' knife[:supermarket_site] = 'https://supermarket.chef.io/' knife[:vault_mode] = 'client'