In our environment, all of the servers live behind a firewall and chef
registers their private IP as the ‘IP’ attribute of the node.
Unfortunately, our workstations are on a separate network, so we need to
use the external IPs to SSH into the server. We have been storing the
external IP as a tag attribute and manually running
ssh firstname.lastname@example.org 'sudo chef-client, but this can be cumbersome when working with
I have been trying to get
knife ssh to read the ‘Tags’ attribute like
knife ssh name:foo* ‘sudo chef-client’ -a ‘Tags’
The Tags variable appears to be an array, but no amount of fiddling with
the syntax has netted me the results I’m looking for. I even went so
far as to remove all of the tags except the IP, but that didn’t work
Has anyone gotten this to work, and if so what sort of hocus pocus did
you do to create this magic?