|
|
@ -244,11 +244,14 @@ def _collect_facts(resource):
|
|
|
|
'db_name' : resource['DBName'],
|
|
|
|
'db_name' : resource['DBName'],
|
|
|
|
'availability_zone' : resource['AvailabilityZone'],
|
|
|
|
'availability_zone' : resource['AvailabilityZone'],
|
|
|
|
'maintenance_window': resource['PreferredMaintenanceWindow'],
|
|
|
|
'maintenance_window': resource['PreferredMaintenanceWindow'],
|
|
|
|
|
|
|
|
'url' : resource['Endpoint']['Address'],
|
|
|
|
|
|
|
|
'port' : resource['Endpoint']['Port']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for node in resource['ClusterNodes']:
|
|
|
|
for node in resource['ClusterNodes']:
|
|
|
|
if node['NodeRole'] in ('SHARED', 'LEADER'):
|
|
|
|
if node['NodeRole'] in ('SHARED', 'LEADER'):
|
|
|
|
facts['private_ip_address'] = node['PrivateIPAddress']
|
|
|
|
facts['private_ip_address'] = node['PrivateIPAddress']
|
|
|
|
|
|
|
|
facts['public_ip_address'] = node['PublicIPAddress']
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
return facts
|
|
|
|
return facts
|
|
|
|