hi. recently i noticed when i use knife ssh, the hostnames in the output
are the EC2 public dns hostnames, which i guess is
node[‘ec2’][‘public_hostname’]. it didn’t used to do that. knife ssh
used to spit out node[‘fqdn’].
tho i haven’t confirmed by sniffing traffic, i’m assuming knife ssh
is hitting my nodes using node[‘ec2’][‘public_hostname’] as opposed to
node[‘fqdn’]. my desired behavior is for knife ssh to hit node[‘fqdn’],
which is the private name on RFC-1918 space, because we are ceasing
allowing ssh from the internet in our EC2 security groups.
[oberon chefdev]$ knife ssh “bender_role:app AND chef_environment:fry” 'uname -m’
in the past, desired:
anyone know how this changed? or how i can get the behavior of knife ssh
today i’m using knife from chef 10.16.2. in the past, i don’t know
which version it would’ve been.
thanks in advance,