On Saturday, February 11, 2012 at 9:10 AM, Juan Jesús Ojeda Croissier wrote:
I think it's not really a bug, it's just the wrong way to set up atthe knife.rb file.The EC2 plugin doesn't take the 'identity_file' from'knife[:identity_file]' but 'config[:identity_file]', so it should bedefined like this at the knife.rb file:identity_file "#{ENV['HOME']}/.ssh/my_ec2_key.pub"With your identity_file's path, of course.It should work for more attrs tha plugin need. Usually the attr nameis the long option, but without the 'knife[:]'.I hope this help.On Thu, Feb 9, 2012 at 8:51 PM, Jessica Bourne < "> > wrote:There is actually an open bug about how knife[:identity_file] can't be setin knife.rb currently: http://tickets.opscode.com/browse/KNIFE_EC2-47You can set this though by just adding the key to ssh, more information canbe found here in theIf this is set, you do not need to provide an identity file to knife as itwill automatically try this when connecting.The knife-ec plugin's readme has some good info on what can be set in theknife.rb with this plugin asJessicaOn Thu, Feb 9, 2012 at 12:21 PM, AJ Christensen < "> > wrote:The options you mentioned are available in long form style:On 10 February 2012 08:45, Sachin Sagar Rai < "> > wrote:As I have configured the `aws_access_key_id` in `.chef/knife.rb` asfollows:knife[:aws_access_key_id] = "SSSSS"What are the equivalent for the following options? I googled it,couldn'tfound the precise one. Does knife ec2 plugin support?-i IDENTITY_FILE, The SSH identity file used forauthenticationknife[:identity_file]--identity-file-x, --ssh-user USERNAME The ssh usernameknife[:ssh_user]--region REGION Your AWS regionknife[:region]-G, --groups X,Y,Z The security groups for this serverknife[:groups]etc.--AJ-S, --ssh-key KEY The AWS SSH key id-V, --verbose More verbose output. Use twice formaxverbosity-------------------------------------------@millisami~ Sachin Sagar RaiRuby on Rails DeveloperSent with Sparrow--Juanje
Archive powered by MHonArc 2.6.16.