There is actually an open bug about how knife[:identity_file] can't be set in knife.rb currently:
You can set this though by just adding the key to ssh, more information can be found here in the wiki:
If this is set, you do not need to provide an identity file to knife as it will automatically try this when connecting.
The knife-ec plugin's readme has some good info on what can be set in the knife.rb with this plugin as well:
https://github.com/opscode/knife-ec2/blob/master/README.rdoc
Jessica
On 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` as follows:
> >
> > knife[:aws_access_key_id] = "SSSSS"
> >
> > What are the equivalent for the following options? I googled it, couldn't
> > found the precise one. Does knife ec2 plugin support?
> >
> > -i IDENTITY_FILE, The SSH identity file used for
> > authentication
>
> knife[:identity_file]
>
> > --identity-file
> > -x, --ssh-user USERNAME The ssh username
>
> knife[:ssh_user]
>
> > --region REGION Your AWS region
>
> knife[:region]
>
> > -G, --groups X,Y,Z The security groups for this server
>
> knife[:groups]
>
> etc.
>
> --AJ
>
> > -S, --ssh-key KEY The AWS SSH key id
> > -V, --verbose More verbose output. Use twice for max
> > verbosity
> >
> > -------------------------------------------
> > @millisami
> > ~ Sachin Sagar Rai
> > Ruby on Rails Developer
> >
http://tfm.com.np
> >
http://nepalonrails.tumblr.com> > Sent with Sparrow
> >