labs: install RabbitMQ message broker service
This changeset installs RabbitMQ on the controller node. The password needed by OpenStack services to use rabbitmq can be sourced from config/credentials. Implements: blueprint openstack-training-labs Change-Id: Ifff79e7d84b2f02c2bdded854721a6a73fa82465
This commit is contained in:
parent
77c3156e61
commit
8d08b00899
@ -10,6 +10,9 @@
|
||||
# Used for MySQL or whatever other DBMS is configured
|
||||
: ${DATABASE_PASSWORD:=secrete}
|
||||
|
||||
# Used for MySQL or whatever other DBMS is configured
|
||||
: ${RABBIT_PASSWORD:=rabbitPass}
|
||||
|
||||
# A "shared secret" used as OS_SERVICE_TOKEN, together with
|
||||
# OS_SERVICE_ENDPOINT, before keystone can be used for authentication
|
||||
# Produced by: openssl rand -hex 10
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Scripts for controller node
|
||||
scripts apt_install_mysql.sh
|
||||
scripts install_rabbitmq.sh
|
||||
scripts setup_keystone.sh
|
||||
scripts setup_glance.sh
|
||||
scripts setup_horizon.sh
|
||||
|
18
labs/scripts/install_rabbitmq.sh
Executable file
18
labs/scripts/install_rabbitmq.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
TOP_DIR=$(cd $(dirname "$0")/.. && pwd)
|
||||
source "$TOP_DIR/config/paths"
|
||||
source "$CONFIG_DIR/credentials"
|
||||
source "$LIB_DIR/functions.guest"
|
||||
|
||||
exec_logfile
|
||||
|
||||
indicate_current_auto
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Install the message broker service (RabbitMQ).
|
||||
|
||||
echo "Installing RabbitMQ."
|
||||
sudo apt-get install -y rabbitmq-server
|
||||
|
||||
echo "Setting RabbitMQ password to '$RABBIT_PASSWORD'."
|
||||
sudo rabbitmqctl change_password guest "$RABBIT_PASSWORD"
|
Loading…
x
Reference in New Issue
Block a user