diff options
| author | Sam Yaple <sam@yaple.net> | 2015-08-07 18:53:38 +0000 |
|---|---|---|
| committer | Sam Yaple <sam@yaple.net> | 2015-08-07 18:53:38 +0000 |
| commit | 51e20db747653b67340333fe823a20e6fd8d898c (patch) | |
| tree | 793760ddb8cbdd254b50a8f19c4b91c435fb67cc /docker/common/heat/heat-api | |
| parent | a5e907a8e91bc4e1d8f563dc79db0ee96c15d380 (diff) | |
| download | kolla-51e20db747653b67340333fe823a20e6fd8d898c.tar.gz kolla-51e20db747653b67340333fe823a20e6fd8d898c.zip | |
Remove config-internal for Heat
Change-Id: I33cf4afbb532c6268bdc2017211ea78733a42fd7
Partially-implements: blueprint remove-config-internal
Diffstat (limited to 'docker/common/heat/heat-api')
| -rwxr-xr-x | docker/common/heat/heat-api/check.sh | 16 | ||||
| -rw-r--r--[-rwxr-xr-x] | docker/common/heat/heat-api/config-external.sh | 0 | ||||
| -rwxr-xr-x | docker/common/heat/heat-api/config-internal.sh | 33 | ||||
| -rwxr-xr-x | docker/common/heat/heat-api/start.sh | 2 |
4 files changed, 1 insertions, 50 deletions
diff --git a/docker/common/heat/heat-api/check.sh b/docker/common/heat/heat-api/check.sh deleted file mode 100755 index ee03dc6d2..000000000 --- a/docker/common/heat/heat-api/check.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -RES=0 - -. /openrc -if ! keystone token-get > /dev/null; then - echo "ERROR: keystone token-get failed" >&2 - RES=1 -else - if ! heat stack-list > /dev/null; then - echo "ERROR: heat stack-list failed" >&2 - RES=1 - fi -fi - -exit $RES diff --git a/docker/common/heat/heat-api/config-external.sh b/docker/common/heat/heat-api/config-external.sh index ca5d73e90..ca5d73e90 100755..100644 --- a/docker/common/heat/heat-api/config-external.sh +++ b/docker/common/heat/heat-api/config-external.sh diff --git a/docker/common/heat/heat-api/config-internal.sh b/docker/common/heat/heat-api/config-internal.sh deleted file mode 100755 index 39acca515..000000000 --- a/docker/common/heat/heat-api/config-internal.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -set -e - -. /opt/kolla/kolla-common.sh -. /opt/kolla/config-heat.sh - -check_required_vars ADMIN_TENANT_NAME \ - HEAT_API_SERVICE_HOST \ - HEAT_KEYSTONE_PASSWORD \ - HEAT_KEYSTONE_USER \ - KEYSTONE_ADMIN_SERVICE_HOST \ - KEYSTONE_ADMIN_TOKEN \ - KEYSTONE_AUTH_PROTOCOL \ - PUBLIC_IP - -fail_unless_os_service_running keystone - -export SERVICE_TOKEN="${KEYSTONE_ADMIN_TOKEN}" -export SERVICE_ENDPOINT="${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_ADMIN_SERVICE_HOST}:35357/v2.0" -crux user-create -n ${HEAT_KEYSTONE_USER} \ - -p ${HEAT_KEYSTONE_PASSWORD} \ - -t ${ADMIN_TENANT_NAME} \ - -r admin - -crux endpoint-create --remove-all -n ${HEAT_KEYSTONE_USER} -t orchestration \ - -I "${KEYSTONE_AUTH_PROTOCOL}://${HEAT_API_SERVICE_HOST}:8004/v1/%(tenant_id)s" \ - -P "${KEYSTONE_AUTH_PROTOCOL}://${PUBLIC_IP}:8004/v1/%(tenant_id)s" \ - -A "${KEYSTONE_AUTH_PROTOCOL}://${HEAT_API_SERVICE_HOST}:8004/v1/%(tenant_id)s" - -# will use crux after https://github.com/larsks/crux/issues/1 is implemented -openstack role list --os-token="${KEYSTONE_ADMIN_TOKEN}" --os-url $SERVICE_ENDPOINT -f csv | tail -n +2 | awk -F, '{print $2}' | grep heat_stack_user || keystone role-create --name heat_stack_user - -exec /usr/bin/heat-api diff --git a/docker/common/heat/heat-api/start.sh b/docker/common/heat/heat-api/start.sh index 6dd14d17e..a7b14b1d9 100755 --- a/docker/common/heat/heat-api/start.sh +++ b/docker/common/heat/heat-api/start.sh @@ -7,7 +7,7 @@ ARGS="" # Loading common functions. source /opt/kolla/kolla-common.sh -# Config-internal script exec out of this function, it does not return here. +# Execute config strategy set_configs exec $CMD $ARGS |
