https://github.com/hyperized/ansible-rabbitmq
https://github.com/hyperized/ansible-rabbitmq
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hyperized/ansible-rabbitmq
- Owner: hyperized
- Created: 2017-05-02T07:51:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T13:28:22.000Z (over 8 years ago)
- Last Synced: 2025-07-08T07:20:00.244Z (7 months ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hyperized.RabbitMQ
=========
Sets up and manages RabbitMQ HA clusters.
Requirements
------------
Ansible 2.1 or above is highly recommended.
Ubuntu Trusty on AWS EC2
Role Variables
--------------
```
# Enable cluster setting
rabbitmq_use_cluster: True
# Set up vhosts
rabbitmq_vhosts:
/:
/examplevhost:
# Set up users
rabbitmq_users:
root:
password: hello
tags: administrator
permissions:
- vhost: /
configure_priv: .*
write_priv: .*
read_priv: .*
- vhost: /fd
configure_priv: .*
write_priv: .*
read_priv: .*
# Set up queues
rabbitmq_queues:
my.queue:
vhost: /examplevhost
user: root
# Set up exchanges
rabbitmq_exchanges:
my.exchange:
name: my.exchange
user: root
vhost: /examplevhost
type: fanout
bindings:
- name: my.queue
type: queue
routing_key: '*'
```
Dependencies
------------
None
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: hyperized.rabbitmq }
Additionally, for testing purposes a script (/root/reset.sh) will be placed on the server that clears the entire broker and allows you to re-run this role from scratch.
License
-------
MIT
Author Information
------------------
Gerben Geijteman