forked from usegalaxy-eu/ansible-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
75 lines (66 loc) · 1.96 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
# Destination path
# rabbitmq_path: /opt/rabbitmq
# Change this to set your predefined erlang cookie
rabbitmq_predefined_erlang_cookie: itsasecret
# add here users and vhost
# rabbitmq_users:
# - user: mqadmin
# password: mqadmin
# tags: administrator
# vhost: /
# - user: user
# password: user
# vhost: user
# specify here which plugins you need
rabbitmq_plugins:
- rabbitmq_management
rabbitmq_config:
consumer_timeout: 3600000 # one hour in milliseconds
# listeners:
# tcp: none
# ssl_listeners:
# default: 5671
# ssl_options:
# cacertfile: /etc/ssl/certs/fullchain.pem
# certfile: /etc/ssl/certs/cert.pem
# keyfile: /etc/ssl/user/privkey-rabbitmq.pem
# verify: verify_peer
# fail_if_no_peer_cert: 'false'
management_agent:
disable_metrics_collector: 'false'
management:
disable_stats: 'false'
# Specify here if it will be a standalone server or being a part of cluster
# possible values: standalone, cluster
rabbitmq_setup: standalone
# rabbitmq_cluster_name: cluster1
# # Add here cluster members in the form [email protected].
# rabbitmq_cluster_members: []
# Docker cantainer
rabbitmq_container:
name: rabbit_hole
image: rabbitmq:3.9.11
hostname: "{{ inventory_hostname }}"
rabbitmq_container_pause: 20
rabbitmq_container_standalone_setup_details:
volumes:
- "{{ rabbitmq_path }}/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro"
- "{{ rabbitmq_path }}/.erlang.cookie:/var/lib/rabbitmq/.erlang.cookie"
- /etc/ssl:/etc/ssl:ro
# - /etc/pki:/etc/pki:ro
ports:
- 15672:15672
- 5672:5672
# rabbitmq_container_cluster_setup_details:
# volumes:
# - "{{ rabbitmq_path }}/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro"
# - "{{ rabbitmq_path }}/.erlang.cookie:/var/lib/rabbitmq/.erlang.cookie"
# - /etc/ssl:/etc/ssl:ro
# - /etc/pki:/etc/pki:ro
# ports:
# - 15672:15672
# - 5671:5671
# - 4369:4369
# - 25672:25672
# env: {'RABBITMQ_USE_LONGNAME': 'true'}