- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: knife ssh can not run command
- Date: Mon, 7 Oct 2013 16:50:12 -0700
On Monday, October 7, 2013 at 4:43 PM, Manoj Thakkar wrote:
Hi All,
I ma runnif this command below and the error is also there,
FATAL: 1 node found, but does not have the required attribute to establish the connection. Try setting another attribute to open the connection using --attribute.
The -a or --attribute looks into your node data for a hostname or IP address to use. You use a dot character for each level of attributes you want to descend. For example, if you have a node where you could get its IP in a recipe like this:
node["rackspace"]["public_ipv4"]
Then you pick that attribute like this for knife ssh:
knife ssh QUERY OTHER_ARGS -a rackspace.public_ipv4
`knife search` has a `-a` flag that works exactly the same, so you can do something like:
`knife search '*:*' -a cloud.public_ipv4` (or with other attributes) to see what your nodes look like.
- [chef] Re: knife ssh can not run command, Daniel DeLeo, 10/07/2013
Archive powered by MHonArc 2.6.16.