Remove config-internal for zaqar
Change-Id: I1df59f287a2f208def1b5be1fd418563ffef85e9 Partially-Implements: blueprint remove-config-internal
This commit is contained in:
parent
a5e907a8e9
commit
1c4583ad01
@ -3,9 +3,7 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|||||||
|
|
||||||
RUN yum -y install openstack-zaqar && yum clean all
|
RUN yum -y install openstack-zaqar && yum clean all
|
||||||
|
|
||||||
COPY ./start.sh /start.sh
|
COPY start.sh /
|
||||||
COPY ./check.sh /check.sh
|
COPY config-external.sh /opt/kolla/
|
||||||
|
|
||||||
COPY config-internal.sh config-external.sh /opt/kolla/
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../../common/zaqar/check.sh
|
|
@ -1 +0,0 @@
|
|||||||
../../../common/zaqar/config-internal.sh
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
status=$(curl -s -w "%{http_code}" -o /dev/null http://localhost:8888/v1/queues)
|
|
||||||
|
|
||||||
if [[ $status -ne 200 && $status -ne 204 ]]; then
|
|
||||||
echo "ERROR($status): queue list failed"
|
|
||||||
exit $status
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,62 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
. /opt/kolla/kolla-common.sh
|
|
||||||
|
|
||||||
check_required_vars KEYSTONE_ADMIN_SERVICE_HOST \
|
|
||||||
KEYSTONE_ADMIN_TOKEN \
|
|
||||||
PUBLIC_IP \
|
|
||||||
ZAQAR_KEYSTONE_PASSWORD \
|
|
||||||
ZAQAR_SERVER_SERVICE_HOST
|
|
||||||
dump_vars
|
|
||||||
|
|
||||||
#check_for_mongodb
|
|
||||||
check_for_keystone
|
|
||||||
|
|
||||||
cat > /openrc <<EOF
|
|
||||||
export OS_AUTH_URL="http://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
|
|
||||||
export OS_USERNAME="${ZAQAR_KEYSTONE_USER}"
|
|
||||||
export OS_PASSWORD="${ZAQAR_KEYSTONE_PASSWORD}"
|
|
||||||
export OS_TENANT_NAME="${ADMIN_TENANT_NAME}"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cfg=/etc/zaqar/zaqar.conf
|
|
||||||
|
|
||||||
crudini --set $cfg DEFAULT log_file \
|
|
||||||
""
|
|
||||||
crudini --set $cfg DEFAULT use_stderr \
|
|
||||||
true
|
|
||||||
|
|
||||||
crudini --set $cfg drivers storage \
|
|
||||||
sqlite
|
|
||||||
|
|
||||||
crudini --set $cfg keystone_authtoken admin_password \
|
|
||||||
"${ZAQAR_KEYSTONE_PASSWORD}"
|
|
||||||
crudini --set $cfg keystone_authtoken admin_user \
|
|
||||||
"${ZAQAR_KEYSTONE_USER}"
|
|
||||||
crudini --set $cfg keystone_authtoken admin_tenant_name \
|
|
||||||
"${ADMIN_TENANT_NAME}"
|
|
||||||
crudini --set $cfg keystone_authtoken auth_uri \
|
|
||||||
"${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_PUBLIC_SERVICE_HOST}:5000/v2.0"
|
|
||||||
crudini --set $cfg keystone_authtoken auth_protocol \
|
|
||||||
"${KEYSTONE_AUTH_PROTOCOL}"
|
|
||||||
crudini --set $cfg keystone_authtoken auth_host \
|
|
||||||
"${KEYSTONE_PUBLIC_SERVICE_HOST}"
|
|
||||||
crudini --set $cfg keystone_authtoken auth_port \
|
|
||||||
5000
|
|
||||||
|
|
||||||
|
|
||||||
export SERVICE_TOKEN="${KEYSTONE_ADMIN_TOKEN}"
|
|
||||||
export SERVICE_ENDPOINT="${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_ADMIN_SERVICE_HOST}:35357/v2.0"
|
|
||||||
crux user-create -n ${ZAQAR_KEYSTONE_USER} \
|
|
||||||
-p ${ZAQAR_KEYSTONE_PASSWORD} \
|
|
||||||
-t ${ADMIN_TENANT_NAME} \
|
|
||||||
-r admin
|
|
||||||
|
|
||||||
crux endpoint-create --remove-all -n ${ZAQAR_KEYSTONE_USER} -t messaging \
|
|
||||||
-I "${KEYSTONE_AUTH_PROTOCOL}://${ZAQAR_SERVER_SERVICE_HOST}:8888" \
|
|
||||||
-P "${KEYSTONE_AUTH_PROTOCOL}://${PUBLIC_IP}:8888" \
|
|
||||||
-A "${KEYSTONE_AUTH_PROTOCOL}://${ZAQAR_SERVER_SERVICE_HOST}:8888"
|
|
||||||
|
|
||||||
exec /usr/bin/zaqar-server
|
|
@ -8,7 +8,7 @@ ARGS=""
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Config-internal script exec out of this function, it does not return here.
|
# Execute config strategy
|
||||||
set_configs
|
set_configs
|
||||||
|
|
||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
|
@ -645,8 +645,4 @@ In order for each service to function, there is a minimum set of required variab
|
|||||||
|
|
||||||
# Zaqar
|
# Zaqar
|
||||||
|
|
||||||
KEYSTONE_ADMIN_SERVICE_HOST
|
None
|
||||||
KEYSTONE_ADMIN_TOKEN
|
|
||||||
PUBLIC_IP
|
|
||||||
ZAQAR_KEYSTONE_PASSWORD
|
|
||||||
ZAQAR_SERVER_SERVICE_HOST
|
|
||||||
|
Loading…
Reference in New Issue
Block a user