kolla-ansible/docker/common/rabbitmq/config-external.sh
Sam Yaple c97ccd6a5f Ansible Rabbitmq support
Adds initial support for Rabbitmq in Ansible using the CONFIG_EXTERNAL methods.

Additionally, this refactors some of the Rabbitmq config script to allow for
reuse by CONFIG_EXTERNAL.

Partially Implements: blueprint ansible-service

Change-Id: I1765548f7e4f1258eb8a49e2a23242955f52655d
2015-07-03 14:16:47 +00:00

15 lines
506 B
Bash

#!/bin/bash
# Cluster configuration
if [[ -f /opt/kolla/rabbitmq/rabbitmq.config ]]; then
cp -af /opt/kolla/rabbitmq/rabbitmq.config /etc/rabbitmq/rabbitmq.config
chown rabbitmq: /etc/rabbitmq/rabbitmq.config
chmod 0600 /etc/rabbitmq/rabbitmq.config
fi
if [[ -f /opt/kolla/rabbitmq/rabbitmq-env.conf ]]; then
cp -af /opt/kolla/rabbitmq/rabbitmq-env.conf /etc/rabbitmq/rabbitmq-env.conf
chown rabbitmq: /etc/rabbitmq/rabbitmq-env.conf
chmod 0600 /etc/rabbitmq/rabbitmq-env.conf
fi