[zmq] Setup url for ceilometer gate with zmq

Setup transport url for gate-oslo.messaging-telemetry-dsvm-integration-zmq
to run. Currently can not complete installation without url parameter.

Change-Id: I632f9ef0d35e94cd9d7577f27c5decd85eec7a48
Related-Bug: #1539047
This commit is contained in:
Oleksii Zamiatin 2016-02-15 16:41:26 +02:00
parent bea93f9bd9
commit 48120dc9ba
2 changed files with 11 additions and 6 deletions

View File

@ -64,6 +64,10 @@ function start_zeromq {
run_process 0mq "$OSLO_BIN_DIR/oslo-messaging-zmq-broker"
}
function get_transport_url {
echo "zmq://"
}
function iniset_zeromq_backend {
local package=$1
local file=$2
@ -71,6 +75,7 @@ function iniset_zeromq_backend {
iniset $file $section rpc_backend "zmq"
iniset $file $section rpc_zmq_host `hostname`
iniset $file $section transport_url $(get_transport_url)
if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then
iniset $file $section rpc_zmq_matchmaker "redis"
MATCHMAKER_REDIS_HOST=${MATCHMAKER_REDIS_HOST:-127.0.0.1}

12
tox.ini
View File

@ -11,15 +11,15 @@ install_command = pip install {opts} {packages}
deps = bashate
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
-not \( -type d -name doc -prune \) \ # skip documentation
-type f \ # only files
-not -name \*~ \ # skip editors, readme, etc
-not \( -type d -name .?\* -prune \) \
-not \( -type d -name doc -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
\( \
-name \*.sh -or \
-name \*rc -or \
-name functions\* -or \
-wholename \*/lib/\* \ # /lib files are shell, but
\) \ # have no extension
-wholename \*/lib/\* \
\) \
-print0 | xargs -0 bashate -v"