Skip to content

Commit

Permalink
add docs to install rabbitmq
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 committed Sep 25, 2023
1 parent e0e7b43 commit 0a35468
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
1 change: 0 additions & 1 deletion ansible/roles/rabbitmq-cluster/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ keyfile_dest: "/etc/rabbitmq/key.pem"
# By enabling this variable to true, there will be 1 queue master and 1 queue mirror.
# If the node running the queue master becomes unavailable, the queue mirror will be automatically promoted to master.
backup_queues_in_two_nodes: true
rabbitmq_add_host_resolution_entries: false
3 changes: 0 additions & 3 deletions ansible/roles/rabbitmq-cluster/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

- include_tasks: install.yml

- include_tasks: configure_dns.yml
when: rabbitmq_add_host_resolution_entries == true

- include_tasks: erlang_cookie.yml
when: rabbitmq_create_cluster

Expand Down
3 changes: 2 additions & 1 deletion bin/offline-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/kubern
ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/cassandra.yml
ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/elasticsearch.yml
ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/restund.yml
ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/minio.yml
ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/minio.yml
ansible-playbook -i $ANSIBLE_DIR/inventory/offline/hosts.ini $ANSIBLE_DIR/rabbitmq.yml
13 changes: 11 additions & 2 deletions offline/docs_ubuntu_22.04.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ Add the nodes in which you want to run rabbitmq to the `[rmq-cluster]` group. Al
Important: RabbitMQ nodes address each other using a node name, for e.g rabbitmq@ansnode1
Please refer to official doc and configure your DNS based on the setup - https://www.rabbitmq.com/clustering.html#cluster-formation-requirements

For adding entries to local host file(/etc/hosts), set `rabbitmq_add_host_resolution_entries` to true in `ansible/roles/rabbimq-cluster/defaults/main.yml`
For adding entries to local host file(/etc/hosts), run
```
d ansible-playbook -i ansible/inventory/offline/hosts.ini ansible/roles/rabbitmq-cluster/tasks/configure_dns.yml
```



Expand Down Expand Up @@ -460,11 +463,17 @@ ufw allow 9200/tcp;
# minio
ufw allow 9000/tcp;
ufw allow 9092/tcp;
#rabbitmq
ufw allow 5671/tcp;
ufw allow 5672/tcp;
ufw allow 4369/tcp;
ufw allow 25672/tcp;
'
```

Afterwards, run the following playbook to create helm values that tell our helm charts
what the IP addresses of cassandra, elasticsearch and minio are.
what the IP addresses of cassandra, elasticsearch, minio and rabbitmq are.

```
d ansible-playbook -i ./ansible/inventory/offline/hosts.ini ansible/helm_external.yml
Expand Down

0 comments on commit 0a35468

Please sign in to comment.