Commit 18c9e265 by e0d

Making plugin installation more flexible, installing the management CLI.

parent b9d6e2ec
......@@ -38,8 +38,9 @@
template: src=rabbitmq.config.j2 dest={{rabbitmq_config_dir}}/rabbitmq.config owner=root group=root mode=0644
register: cluster_configuration
- name: rabbitmq | add the mangement plugin
rabbitmq_plugin: names=rabbitmq_management state=enabled
- name: rabbitmq | install plugins
rabbitmq_plugin:
names={{",".join(rabbitmq_plugins)}} state=enabled
# When rabbitmq starts up it creates a folder of metadata at '/var/lib/rabbitmq/mnesia'.
# This folder should be deleted before clustering is setup because it retains data
......@@ -65,3 +66,12 @@
state=present
with_items: rabbitmq_auth_config.admins
when: "'admins' in rabbitmq_auth_config"
#
# Depends upon the management plugin
#
- name: rabbitmq | install admin tools
get_url:
url=localhost:{{ rabitmq_port }}/cli/rabbitmqadmin
dest=/usr/local/bin/rabbitmqadmin
creates=/usr/local/bin/rabbitmqadmin
\ No newline at end of file
......@@ -26,3 +26,6 @@ rabbitmq_auth_config:
rabbitmq_aws_stack_name: "tag_aws_cloudformation_stack-name_"
rabbitmq_clustered_hosts: []
rabbitmq_plugins:
- rabbitmq_management
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment