[chef] Re: Re: hostnames hit by knife ssh


Chronological Thread 
  • From: JD Harrington < >
  • To:
  • Cc:
  • Subject: [chef] Re: Re: hostnames hit by knife ssh
  • Date: Wed, 5 Dec 2012 08:15:32 -0500

You can also set this in knife.rb if you prefer.

knife[:ssh_attribute] = "fqdn"

On Wed, Dec 5, 2012 at 4:30 AM, Steven Danna 
< >
 wrote:
> On 12/5/12 12:31 AM, 
> 
>  wrote:
>
>> anyone know how this changed? or how i can get the behavior of knife ssh
>> hitting node['fqdn']?
>
> The feature was added in 10.14.0 in subsequently improved/changed.  The
> commit is 3c52de54beb03a371b06a7b451591c650a79bb8a in the Chef repository.
>
> Across the cloud providers, the thought was that
> node['cloud']['public_hostname'] would be the more reliable name to
> connect to.
>
> You should be able to use fqdn by doing the following:
>
>     knife ssh "QUERY' -a fqdn
>
> I hope this helps.
>
> Sincerely,
>
> Steven
>
> --
> Steven Danna
> Systems Engineer, Opscode, Inc
> GPG Key: http://stevendanna.github.com/downloads/code/public.key
>



Archive powered by MHonArc 2.6.16.

§