Skip to content

Install RabbitMQ, clustering, enable plugins, set users and policy for it with HAProxy & KeepAliveD for setup redundant service.

License

Notifications You must be signed in to change notification settings

mshahmalaki/ansible-role-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ Ansible Role

Install RabbitMQ, clustering, enable plugins, set users and policy for it with HAProxy & KeepAliveD for setup redundant service.

Requirements

Use RabbitMQ example configuration to customize rabbitmq.conf jinja template.

For test this role you can use Molecule and Vagrant(Recommended).

Categorize target servers with 3 categories in inventory file:

Group Description
rabbitmq-master first node
rabbitmq-slaves other nodes
rabbitmq-cluster parent of 2 above groups

For example: inventory.ini

[all]
rabbitmq01
rabbitmq02
rabbitmq03

[rabbitmq-master]
rabbitmq01

[rabbitmq-slaves]
rabbitmq02
rabbitmq03

[rabbitmq-cluster:children]
rabbitmq-master
rabbitmq-slaves

Role Variables

According to defaults, you find some variables that you can use on group_vars or host_vars in inventories directory.

Dependencies

Install community-based RabbitMQ Ansible collection:

ansible-galaxy collection install community.rabbitmq

Example Playbook

---
- hosts: all
  become: true
  roles:
    - rabbitmq

License

MIT

Author Information

This role was created in 2023 by Mohammad Shahmaleki, for any suggestions and questions about this ansible role contact with me on Linkedin.

About

Install RabbitMQ, clustering, enable plugins, set users and policy for it with HAProxy & KeepAliveD for setup redundant service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages