
- Updated the required variables to be sorted so that they are better visible one on each line - Removed variable defaults from each service scripts and added them to tools/genenv file which holds all default values Change-Id: Ia7b1b08ba3f963b46b81434ce84f476d56890a93 Closes-Bug: #1476494 Closes-Bug: #1467652
33 lines
1.2 KiB
Bash
Executable File
33 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
. /opt/kolla/kolla-common.sh
|
|
. /opt/kolla/config-heat.sh
|
|
|
|
check_required_vars ADMIN_TENANT_NAME \
|
|
HEAT_API_CFN_SERVICE_HOST \
|
|
HEAT_API_CFN_SERVICE_PORT \
|
|
HEAT_CFN_KEYSTONE_PASSWORD \
|
|
HEAT_CFN_KEYSTONE_USER \
|
|
KEYSTONE_ADMIN_SERVICE_HOST \
|
|
KEYSTONE_ADMIN_SERVICE_PORT \
|
|
KEYSTONE_ADMIN_TOKEN \
|
|
KEYSTONE_AUTH_PROTOCOL
|
|
|
|
fail_unless_os_service_running keystone
|
|
|
|
export SERVICE_TOKEN="${KEYSTONE_ADMIN_TOKEN}"
|
|
export SERVICE_ENDPOINT="${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_ADMIN_SERVICE_HOST}:${KEYSTONE_ADMIN_SERVICE_PORT}/v2.0"
|
|
|
|
crux user-create -n ${HEAT_CFN_KEYSTONE_USER} \
|
|
-p ${HEAT_CFN_KEYSTONE_PASSWORD} \
|
|
-t ${ADMIN_TENANT_NAME} \
|
|
-r admin
|
|
|
|
crux endpoint-create --remove-all -n ${HEAT_CFN_KEYSTONE_USER} -t cloudformation \
|
|
-I "${KEYSTONE_AUTH_PROTOCOL}://${HEAT_API_CFN_SERVICE_HOST}:${HEAT_API_CFN_SERVICE_PORT}/v1" \
|
|
-P "${KEYSTONE_AUTH_PROTOCOL}://${HEAT_API_CFN_SERVICE_HOST}:${HEAT_API_CFN_SERVICE_PORT}/v1" \
|
|
-A "${KEYSTONE_AUTH_PROTOCOL}://${HEAT_API_CFN_SERVICE_HOST}:${HEAT_API_CFN_SERVICE_PORT}/v1"
|
|
|
|
exec /usr/bin/heat-api-cfn
|