Skip to content

jasonroyle/ansible-role-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ Ansible Role

Version

See:

Set the rabbitmq_version variable to define the version of RabbitMQ to install.

rabbitmq_version: 3.6.6-1

Users

See:

Set the rabbitmq_users variable to define an array of present users.

rabbitmq_users:
- user: admin
  password: admin
  tags: administrator
parameter required default choices comments
configure_priv no .*
password yes
read_priv no .*
tags no
user yes
vhost no /
write_priv no .*

Remove Users

Set the rabbitmq_users_absent variable to define an array of absent users.

rabbitmq_users_absent:
- guest

Virtual Hosts

See:

Set the rabbitmq_vhosts variable to define an array of present virtual hosts.

rabbitmq_vhosts:
- /one
- name: /two
  node: rabbit
  tracing: no
parameter required default choices comments
name yes
node no rabbit
tracing no no
  • yes
  • no

Remove Virtual Hosts

Set the rabbitmq_vhosts_absent variable to define an array of absent virtual hosts.

rabbitmq_vhosts_absent:
- /vhost

Plugins

See:

Set the rabbitmq_plugins variable to define an array of enabled plugins.

rabbitmq_plugins:
- rabbitmq_management
- name: rabbitmq_delayed_message_exchange
  url: http://www.rabbitmq.com/community-plugins/v3.6.x/rabbitmq_delayed_message_exchange-0.0.1.ez
parameter required default choices comments
name yes
url no Installs the plugin

Disable Plugins

Set the rabbitmq_plugins_disabled variable to disable plugins.

rabbitmq_plugins_disabled:
- rabbitmq_management

Configuration

See:

Set the rabbitmq_config variable to define the configuration.

rabbitmq_config:
- rabbit:
  - tcp_listeners:
    - "'0.0.0.0'": 5671

Cluster

See:

Set the rabbitmq_cluster variable to enable clustering.

rabbitmq_cluster: yes

Erlang Cookie

Set the rabbitmq_erlang_cookie variable to define the Erlang cookie.

rabbitmq_erlang_cookie: g9avtqdzdm2p5oe9

IP Address

Set the rabbitmq_cluster_ip_address host variable to define the private IP address of each host.

[queue]
123.123.123.1 rabbitmq_cluster_ip_address=321.321.321.1
123.123.123.2 rabbitmq_cluster_ip_address=321.321.321.2
123.123.123.3 rabbitmq_cluster_ip_address=321.321.321.3

License

MIT