current_dir =
File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name 'rajagopalan'
client_key
'/root/chef-repo/.chef/rajagopalan.pem'
validation_client_name 'hexaware'
validation_key
'/root/chef-repo/.chef/hexaware-validator.pem'
chef_server_url 'https://api.chef.io/organizations/ORG_NAME'
cache_type 'BasicFile'
cache_options( :path
=> "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ['#{current_dir}/../cookbooks']
Vi ~/.gemrc
Add this line to
bypass ssl check
:ssl_verify_mode: 0
Add this line to
knife.rb to exclude ssl check while executing knife ec2 server create
Excon.defaults[:ssl_verify_peer]
= false