Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable plugins #392

Closed
pcon0718 opened this issue Aug 11, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@pcon0718
Copy link

commented Aug 11, 2016

Hi Everyone, I am unable to enable plugins using a wrapper script with the rabbitmq cookbook.

I have put the following values in my wrapper script:

default['rabbitmq']['enabled_plugins'] = 'amqp_client', 'mochiweb', 'rabbitmq_management', 'rabbitmq_management_agent', 'rabbitmq_web_dispatch', 'webmachine'
default['rabbitmq']['disabled_plugins'] = []
default['rabbitmq']['community_plugins'] = {}

The cookbook converges fine. However no plugins ever get installed.

[root@host1 rabbitmq]# rabbitmq-plugins list
Configured: E = explicitly enabled; e = implicitly enabled
| Status: * = running on rabbit@host1
|/
[ ] amqp_client 3.6.4
[ ] cowboy 1.0.3
[ ] cowlib 1.0.1
[ ] mochiweb 2.13.1
[ ] rabbitmq_amqp1_0 3.6.4
[ ] rabbitmq_auth_backend_ldap 3.6.4
[ ] rabbitmq_auth_mechanism_ssl 3.6.4
[ ] rabbitmq_consistent_hash_exchange 3.6.4
[ ] rabbitmq_event_exchange 3.6.4
[ ] rabbitmq_federation 3.6.4
[ ] rabbitmq_federation_management 3.6.4
[ ] rabbitmq_jms_topic_exchange 3.6.4
[ ] rabbitmq_management 3.6.4
[ ] rabbitmq_management_agent 3.6.4
[ ] rabbitmq_management_visualiser 3.6.4
[ ] rabbitmq_mqtt 3.6.4
[ ] rabbitmq_recent_history_exchange 1.2.1
[ ] rabbitmq_sharding 0.1.0
[ ] rabbitmq_shovel 3.6.4
[ ] rabbitmq_shovel_management 3.6.4
[ ] rabbitmq_stomp 3.6.4
[ ] rabbitmq_top 3.6.4
[ ] rabbitmq_tracing 3.6.4
[ ] rabbitmq_trust_store 3.6.4
[ ] rabbitmq_web_dispatch 3.6.4
[ ] rabbitmq_web_stomp 3.6.4
[ ] rabbitmq_web_stomp_examples 3.6.4
[ ] sockjs 0.3.4
[ ] webmachine 1.10.3

Not sure what I am doing wrong here. Any help would be appreciated. Thanks.

@devsibwarra

This comment has been minimized.

Copy link
Contributor

commented Aug 11, 2016

@pcon0718 The node['rabbitmq']['enabled_plugins'] setting must be an array. In your wrapper script, it should look like one of these lines

default['rabbitmq']['enabled_plugins'] = ['amqp_client', 'mochiweb', 'rabbitmq_management', 'rabbitmq_management_agent', 'rabbitmq_web_dispatch', 'webmachine']

default['rabbitmq']['enabled_plugins'] = %w(amqp_client mochiweb rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatch webmachine)

Are you including the recipe[rabbitmq::plugin_management] for your node? If so, you should see similar output to this in your Chef log

[2016-08-11T18:09:04+00:00] INFO: Processing rabbitmq_plugin[rabbitmq_shovel] action enable (rabbitmq::plugin_management line 25)
[2016-08-11T18:09:04+00:00] INFO: Processing rabbitmq_plugin[rabbitmq_shovel_management] action enable (rabbitmq::plugin_management line 25)
@pcon0718

This comment has been minimized.

Copy link
Author

commented Aug 11, 2016

Thanks @devsibwarra. I tried both, and the cookbook converges fine. However I am still not able to get the plugins to install.

@devsibwarra

This comment has been minimized.

Copy link
Contributor

commented Aug 11, 2016

The rabbitmq default recipe only installs RabbitMQ, sets up the configuration/erlang cookie, and manages the service. You need to include the other desired recipes either in a role or your wrapper.

Here's a blurb from my wrapper cb; just include the recipes with settings you wish to manage/change

include_recipe 'rabbitmq'
include_recipe 'rabbitmq::mgmt_console'
include_recipe 'rabbitmq::plugin_management'
include_recipe 'rabbitmq::policy_management'
include_recipe 'rabbitmq::user_management'
include_recipe 'rabbitmq::virtualhost_management'
include_recipe 'rabbitmq::cluster'

The erlang cookie is only managed when clustering is enabled, which is disabled by default

@pcon0718

This comment has been minimized.

Copy link
Author

commented Aug 11, 2016

That works. Thank you.

@pcon0718 pcon0718 closed this Aug 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.