Commit 15102512 by e0d

Merge pull request #213 from edx/e0d/rabbitmqadmin

Making plugin installation more flexible, installing the management CLI.
parents 2096b1bf eeb6199e
......@@ -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,16 @@
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=http://localhost:{{ rabbitmq_management_port }}/cli/rabbitmqadmin
dest=/usr/local/bin/rabbitmqadmin
- name: rabbitmq | ensure rabbitmqadmin attributes
file:
path=/usr/local/bin/rabbitmqadmin owner=root
group=root mode=0655
\ No newline at end of file
#Varibables for rabbitmq
#Variables for rabbitmq
---
rabbitmq_apt_key: "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc"
rabbitmq_repository: "deb http://www.rabbitmq.com/debian/ testing main"
......@@ -13,6 +13,7 @@ rabbitmq_cookie_location: "{{rabbitmq_cookie_dir}}/.erlang.cookie"
rabbitmq_mnesia_folder: "{{rabbitmq_cookie_dir}}/mnesia"
rabbitmq_port: 5672
rabbitmq_management_port: 15672
rabbitmq_auth_config:
erlang_cookie: "CHANGE ME"
......@@ -26,3 +27,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