[chef] Re: Which knife.rb?


Chronological Thread 
  • From: Elvin Abordo < >
  • To: " " < >
  • Subject: [chef] Re: Which knife.rb?
  • Date: Sat, 16 Mar 2013 12:32:24 -0400

Its the knife.rb file that was a result of executing knife configure on your local workstation. Its the same knife.rb where (hopefuly) you configured your cookbook path. 

On Saturday, March 16, 2013, wrote:
I'm attempting to bootstrap an EC2 instance and following the guide here:
http://wiki.opscode.com/display/chef/EC2+Bootstrap+Fast+Start+Guide#EC2BootstrapFastStartGuide-Step2:ConfigureAWSsettingsandtheknife.rbfile

One thing I'm a bit confused with is it says;

Add your AWS Cloud Credentials to the bottom of your knife.rb:
knife[:aws_access_key_id]     = "Your AWS Access Key"
knife[:aws_secret_access_key] = "Your AWS Secret Access Key"

Now, I've done a search of my file system and I can see a number of knife.rb
files;

./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/spec/support/shared/functional/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/chef_fs/knife.rb
./embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/knife.rb

So my question is simply which one do I add the aws secret keys to?

Thanks in advance

John


--
Elvin Abordo
Mobile: (845) 475-8744



Archive powered by MHonArc 2.6.16.

§