kolla-ansible/docker/common/rabbitmq/config-rabbit.sh
Sam Yaple 1a145d8a01 Remove config-internal for rabbitmq
Change-Id: Ifd8fc361d8a7e278134f671910e8c122c9842386
Partially-Implements: blueprint remove-config-internal
2015-08-07 17:44:01 +00:00

8 lines
219 B
Bash

#!/bin/bash
function set_rabbitmq_cookie {
echo "${RABBITMQ_CLUSTER_COOKIE}" > /var/lib/rabbitmq/.erlang.cookie
chown rabbitmq: /var/lib/rabbitmq/.erlang.cookie
chmod 400 /var/lib/rabbitmq/.erlang.cookie
}