Commit 3f45de9a by Gabe Mulley

Include hosts inside private subnets when they have dns names

We frequently connect to these hosts through an ssh tunnel to the bastion box. This will enable us to do stuff like manage users on these boxes that are buried within the VPC.

Change-Id: I6121585bafc7ae661e66060eeefdd472edcacbb2
parent 0c84d255
......@@ -331,6 +331,7 @@ class Ec2Inventory(object):
for dest_variable in [self.destination_variable, self.backup_destination_variable]:
if hasattr(instance, dest_variable):
dest = getattr(instance, dest_variable)
break
if not dest:
# Skip instances we cannot address (e.g. private VPC subnet)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment