/usr/share/tripleo-image-elements/rabbitmq-server/README.md is in python-tripleo-image-elements 0.7.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | Install RabbitMQ server package and optionally configure it using Heat
metadata.
Heat
----
We will create a random password and feed it to a Heat wait condition
if directed by Metadata. The relevant Metadata would look something like
this in Heat:
Metadata:
rabbit:
users:
- username: guest
- tags: administrator
password_handle: {Ref: RabbitMQPasswordHandle}
Using cfn-signal, we will feed back a generated password into the handle
for use by other resources.
RabbitMQ Cluster
----------------
Additional parameters in heat template are required for each clustered node:
Metadata:
rabbit:
cookie: some_cookie
- make sure same cookie is set for all nodes in cluster
nodes:
node0,node1
'rabbit.nodes' contains short hostnames of all nodes in RabbitMq cluster.
If a node has 'rabbit.nodes' set to true, this node is added into
cluster with other nodes listed in 'rabbit.nodes'.
RabbitMQ inter-node communication is restricted to port 5535 only in config file
(otherwise random ports would be used) to make sure this port can be enabled in
firewall.
Sample 2-node cluster definition:
node0:
rabbit:
cookie: some_cookie
nodes:
Fn::Join:
- ','
- - Fn::Select:
- name
- Fn::GetAtt:
- node0
- show
- Fn::Select:
- name
- Fn::GetAtt:
- node1
- show
node1:
rabbit:
cookie: some_cookie
nodes:
Fn::Join:
- ','
- - Fn::Select:
- name
- Fn::GetAtt:
- node0
- show
- Fn::Select:
- name
- Fn::GetAtt:
- node1
- show
|