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

Switch back to using rabbitmq-plugins from system path (#566) #570

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

wyardley
Copy link
Contributor

From #566, it seems as if the command in /sbin should be preferred, at least with modern RabbitMQ versions. Not sure if we need to get too smart about it, or how far back we need to support in terms of versions... presumably it would be possible to have it fall back to the second path, but not sure if that's overkill.

@wyardley wyardley changed the title Reverts ec5aff0d457e640df780903bd9d64feceb0b0fc2 (#566) Switch back to using rabbitmq-plugins from system path (#566) Aug 26, 2017
@wyardley wyardley force-pushed the issues_566 branch 2 times, most recently from c8c8052 to 84d7412 Compare August 30, 2017 20:13
@wyardley wyardley added bug Something isn't working needs-feedback Further information is requested labels Aug 30, 2017
@wyardley wyardley force-pushed the issues_566 branch 2 times, most recently from 6310fa6 to 04a22c1 Compare September 1, 2017 17:57
@wyardley
Copy link
Contributor Author

wyardley commented Sep 4, 2017

Also some discussion in #134

@wyardley
Copy link
Contributor Author

FWIW, RabbitMQ 3.3.5 on CentOS 7 has this in /usr/sbin. But 3.1.5 on CentOS 7 does not, so that could be a good test case.

@wyardley wyardley force-pushed the issues_566 branch 3 times, most recently from a7c48f1 to ff53235 Compare September 12, 2017 06:32
# Prefer rabbitmq-plugins if it's in $PATH, but fall back to /usr/lib/rabbitmq/bin
if Puppet::Util.which('rabbitmq-plugins')
has_command(:rabbitmqplugins, 'rabbitmq-plugins') do
environment HOME: '/tmp'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did try manipulating PATH directly, but didn't have any luck when doing actual tests with it.

@bastelfreak bastelfreak merged commit a51d2b1 into voxpupuli:master Sep 13, 2017
@wyardley wyardley deleted the issues_566 branch September 13, 2017 08:47
slm0n87 pushed a commit to slm0n87/puppet-rabbitmq that referenced this pull request Mar 7, 2019
Switch back to using rabbitmq-plugins from system path (voxpupuli#566)
cegeka-jenkins pushed a commit to cegeka/puppet-rabbitmq that referenced this pull request Mar 26, 2021
Switch back to using rabbitmq-plugins from system path (voxpupuli#566)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants