c97ccd6a5f
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
15 lines
506 B
Bash
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
|