mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Add rabbitmq config to ansible
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
1
roles/rabbitmq/files/enabled_plugins
Normal file
1
roles/rabbitmq/files/enabled_plugins
Normal file
@@ -0,0 +1 @@
|
||||
[rabbitmq_management].
|
||||
36
roles/rabbitmq/files/rabbitmq.config
Normal file
36
roles/rabbitmq/files/rabbitmq.config
Normal file
@@ -0,0 +1,36 @@
|
||||
[
|
||||
{rabbit,
|
||||
[
|
||||
{log_levels, [{connection, none}]},
|
||||
{default_user_tags, [administrator]},
|
||||
{heartbeat, 600},
|
||||
{channel_max, 128}
|
||||
]},
|
||||
{kernel,
|
||||
[
|
||||
]},
|
||||
{rabbitmq_management,
|
||||
[
|
||||
]},
|
||||
|
||||
{rabbitmq_management_agent,
|
||||
[
|
||||
]},
|
||||
{rabbitmq_shovel,
|
||||
[{shovels,
|
||||
[
|
||||
]}
|
||||
]},
|
||||
{rabbitmq_stomp,
|
||||
[
|
||||
]},
|
||||
{rabbitmq_mqtt,
|
||||
[
|
||||
]},
|
||||
{rabbitmq_amqp1_0,
|
||||
[
|
||||
]},
|
||||
{rabbitmq_auth_backend_ldap,
|
||||
[
|
||||
]}
|
||||
].
|
||||
@@ -2,7 +2,18 @@
|
||||
yum: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- rabbitmq-server
|
||||
tags: rabbitmq
|
||||
tags:
|
||||
- rabbitmq
|
||||
- packages
|
||||
|
||||
- name: install the configuration
|
||||
copy: src={{item}} dest=/etc/rabbitmq/{{item}} owner=root group=root mode=0644
|
||||
with_items:
|
||||
- rabbitmq.config
|
||||
- enabled_plugins
|
||||
tags:
|
||||
- rabbitmq
|
||||
- config
|
||||
|
||||
- name: start rabbitmq
|
||||
service: name=rabbitmq-server state=started enabled=yes
|
||||
|
||||
Reference in New Issue
Block a user