[chef] Re: Which knife.rb?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To:
  • Subject: [chef] Re: Which knife.rb?
  • Date: Sat, 16 Mar 2013 22:15:07 +0545

That is in your local workstation.

knife looks for knife.rb in different locations.

1. In your project folder inside .chef/knife.rb
2. In home dir ~/.chef/knife.rb
3. In /etc/chef/knife.rb

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.com
http://funsole.com
Sent with Sparrow

On Saturday, March 16, 2013 at 10:10 PM, wrote:

I'm attempting to bootstrap an EC2 instance and following the guide here:

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




Archive powered by MHonArc 2.6.16.

§