-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for looking up Private DNS Name for hostname #197
Conversation
\cc @zl4bv @tjnicholas |
@MEKF is the private dns name ever preferred over the private ip? Do we want to inject this third in the priority instead of fourth? |
Given a user is behind a proxy When kitchen-ec2 connects to the instance Then it should connect to the instance using the private DNS address |
I'm unclear whether that is a more common or less common case than the opposite. Well, 👍 at any rate, seems reasonable. |
The flipside is that the Certainly not sure which case is more common, but the "play it safe" option in my opinion would be to keep the current order with private IP address preferred over private DNS. |
Fair enough! Paging @test-kitchen/maintainers @test-kitchen/kitchen-ec2-maintainers |
Code looks fine to me, approve of the ordering as well - I've had some real issues with Ansible when trying to SSH via private_dns so defaulting to the IP is the sensible thing to do IMHO. +1 |
Add support for looking up Private DNS Name for hostname
In some circumstances - for example proxy settings that are configurable on hostnames - the
private_dns_name
is preferred over theprivate_ip_address
When
private_dns
is provided as the option in.kitchen.yml
, the value ofprivate_dns_name
will be returnedWhen this option is unset, the
private_ip_address
will be returned as in the current implementation