Some small changes to tower openstack work

1) Favor private addresses in the openstack inventory sync
2) Force refresh
3) use hostId and promote it to the top level vars object so we can
track individual host changes
This commit is contained in:
Matthew Jones
2015-04-20 15:11:06 -04:00
parent e87f90b39b
commit f45d75c06c
4 changed files with 21 additions and 5 deletions

View File

@@ -938,7 +938,7 @@ class RunInventoryUpdate(BaseTask):
username=credential.username,
password=decrypt_field(credential, "password"),
project_name=credential.project)
openstack_data = {"clouds": {"devstack": {"auth": openstack_auth}}}
openstack_data = {"clouds": {"devstack": {"private": "true", "auth": openstack_auth}}}
return yaml.safe_dump(openstack_data, default_flow_style=False, allow_unicode=True)
cp = ConfigParser.ConfigParser()