diff options
author | Larry Smith Jr <larry.e.smith.jr@gmail.com> | 2015-08-06 21:32:09 -0400 |
---|---|---|
committer | Larry Smith Jr <larry.e.smith.jr@gmail.com> | 2015-08-06 21:32:09 -0400 |
commit | 9658075b826dbf1206e7d9f689b242acfeb61b3d (patch) | |
tree | b3f3aeaf997adf647e31244d2088e91621f5d18d /README.md | |
parent | 021cbc496a7afb9b1f0e80bb56b0c11ef3de127d (diff) | |
download | ansible-rabbitmq-9658075b826dbf1206e7d9f689b242acfeb61b3d.tar.gz ansible-rabbitmq-9658075b826dbf1206e7d9f689b242acfeb61b3d.tar.zst ansible-rabbitmq-9658075b826dbf1206e7d9f689b242acfeb61b3d.zip |
changed method of determining master node
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -10,15 +10,11 @@ Any pre-requisites that may not be covered by Ansible itself or the role should | |||
10 | 10 | ||
11 | Role Variables | 11 | Role Variables |
12 | -------------- | 12 | -------------- |
13 | define in one host_vars/host config to designate the master_rabbit_node | ||
14 | ```` | ||
15 | master_rabbit_node: true | ||
16 | ```` | ||
17 | 13 | ||
18 | ```` | 14 | ```` |
19 | enable_rabbitmq_clustering: false #defines if setting up a rabbitmq cluster...define here or in group_vars/group | ||
20 | config_rabbitmq_ha: false #defines if rabbitmq ha should be configured...define here or in group_vars/group | 15 | config_rabbitmq_ha: false #defines if rabbitmq ha should be configured...define here or in group_vars/group |
21 | master_rabbit_node: false #defines if node should be considered master...define as true in one host in host_vars/host out of all nodes to be part of cluster | 16 | enable_rabbitmq_clustering: false #defines if setting up a rabbitmq cluster...define here or in group_vars/group |
17 | erlang_cookie: LSKNKBELKPSTDBBCHETL #define erlang cookie for cluster...define here or in group_vars/group | ||
22 | rabbitmq_config: | 18 | rabbitmq_config: |
23 | - queue_name: logstash | 19 | - queue_name: logstash |
24 | durable: true | 20 | durable: true |
@@ -26,6 +22,16 @@ rabbitmq_config: | |||
26 | type: fanout | 22 | type: fanout |
27 | routing_key: logstash | 23 | routing_key: logstash |
28 | tags: 'ha-mode=all,ha-sync-mode=automatic' | 24 | tags: 'ha-mode=all,ha-sync-mode=automatic' |
25 | rabbitmq_master: [] #defines the inventory host that should be considered master...define here or in group_vars/group | ||
26 | ```` | ||
27 | |||
28 | example... | ||
29 | group_vars/rabbitmq-cluster-nodes | ||
30 | ```` | ||
31 | --- | ||
32 | enable_rabbitmq_clustering: true | ||
33 | config_rabbitmq_ha: false | ||
34 | rabbitmq_master: ans-test-1 | ||
29 | ```` | 35 | ```` |
30 | 36 | ||
31 | Dependencies | 37 | Dependencies |