From b9662d352ebdfbcab66e5f4e6ee7cd16f2e4d95d Mon Sep 17 00:00:00 2001 From: whitestar Date: Thu, 24 Dec 2015 22:42:57 +0900 Subject: [PATCH] update knife conf. sample. --- .chef/knife.rb.sample | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.chef/knife.rb.sample b/.chef/knife.rb.sample index 6dd559a..6122452 100644 --- a/.chef/knife.rb.sample +++ b/.chef/knife.rb.sample @@ -1,16 +1,32 @@ -current_dir = File.dirname(__FILE__) +user_name = 'alice' +org_name = 'wonderland' +conf_dir = "#{ENV['HOME']}/chef/chef.io" +current_dir = File.dirname(__FILE__) # .chef/knife.rb + log_level :info log_location STDOUT -node_name "YOUR_NODE_NAME" -client_key "#{current_dir}/YOUR_CLIENT_KEY.pem" -validation_client_name "YOUR_ORGANIZATION-validator" -validation_key "#{current_dir}/YOUR_ORGANIZATION-validator.pem" -chef_server_url "https://api.opscode.com/organizations/YOUR_ORGANIZATION" +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"] +cookbook_path [ + "#{current_dir}/../cookbooks", + "#{current_dir}/../vendor/cookbooks" +] -cookbook_copyright "YOUR_NAME" -cookbook_email "YOUR_EMAIL" +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[:vault_mode] = 'client' + -- 2.11.0