Generate inventory with tripleo-admin user

This is already the default when we generate the inventory via Mistral
workflow [1]. By using heat-admin we cannot connect to Deployed Server
environments, which e.g. affects CI, so we should use the same default
that the Mistral workflow uses nowadays.

[1] https://git.openstack.org/cgit/openstack/tripleo-common/tree/tripleo_common/actions/ansible.py#n526

Partial-Bug: #1757090
Change-Id: Idc0dba7a119efedae7f762d3a351419c22584b61
This commit is contained in:
Jiri Stransky 2018-03-20 14:37:53 +01:00 committed by Athlan-Guyot sofer
parent c3f876d20b
commit 02a49c9059
1 changed files with 1 additions and 0 deletions

View File

@ -823,6 +823,7 @@ def get_tripleo_ansible_inventory(inventory_file=''):
try:
processutils.execute(
'/usr/bin/tripleo-ansible-inventory',
'--ansible_ssh_user', 'tripleo-admin',
'--static-yaml-inventory', inventory_file)
except processutils.ProcessExecutionError as e:
message = "Failed to generate inventory: %s" % str(e)