- From:
- To:
- Subject: [chef] Re: Re: Re: hostnames hit by knife ssh
- Date: Wed, 5 Dec 2012 11:05:20 -0800
awesome. thanks for the tips everyone!
kallen
On Wed, 05 Dec 2012, JD Harrington wrote:
>
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.