Merge "Tuskar: support packaged heat templates"

This commit is contained in:
Jenkins 2014-11-05 13:58:05 +00:00 committed by Gerrit Code Review
commit 3a998d5772
1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,16 @@
#!/bin/bash
set -eux
TUSKAR_ROLE_DIRECTORY=${TUSKAR_ROLE_DIRECTORY:-"/opt/stack/tripleo-heat-templates"}
TUSKAR_ROLE_DIRECTORY=${TUSKAR_ROLE_DIRECTORY:-}
if [ -z "$TUSKAR_ROLE_DIRECTORY" ]; then
if [ -d /usr/share/openstack-tripleo-heat-templates/ ]; then
# Fedora/RHEL RPMs store the templates here
TUSKAR_ROLE_DIRECTORY='/usr/share/openstack-tripleo-heat-templates/'
else
# Default to the source installed version
TUSKAR_ROLE_DIRECTORY='/opt/stack/tripleo-heat-templates'
fi
fi
if os-is-bootstrap-host ; then
sudo -u tuskar -- tuskar-dbsync --config-file /etc/tuskar/tuskar.conf