Reintroduce OVERCLOUD_HOSTS exporting

The refactoring in I55f705a390ae5b927a9fb0f8d8ec153ea61cc3c9 dropped
the OVERCLOUD_HOSTS variable, and as a result the tripleo-admin user
creation fails, and ceph-ansible fails. We put the variable back by
joining all hosts from deployed_server_overcloud_roles.

Change-Id: Ifa4937624ed14a3ece48dd92ba4f69b5e4928e77
Closes-Bug: #1711559
This commit is contained in:
Jiri Stransky 2017-08-18 12:31:37 +02:00
parent 92e924a875
commit 1e6fd80530
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ export OVERCLOUD_ROLES=""
OVERCLOUD_ROLES="$OVERCLOUD_ROLES {{ role.name }}"
export {{ role.name }}_hosts={{ role.hosts }}
{% endfor %}
export OVERCLOUD_HOSTS="{{ deployed_server_overcloud_roles|map(attribute='hosts')|join(' ') }}"
/usr/share/openstack-tripleo-heat-templates/deployed-server/scripts/get-occ-config.sh 2>&1 | sudo dd of=/var/log/deployed-server-os-collect-config.log