Skip to content

Commit

Permalink
Switch back to using rabbitmq-plugins from system path, drop Puppet 3…
Browse files Browse the repository at this point in the history
… conditional (voxpupuli#566)
  • Loading branch information
William Yardley committed Sep 1, 2017
1 parent c546593 commit 04a22c1
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions lib/puppet/provider/rabbitmq_plugin/rabbitmqplugins.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'rabbitmqctl'))
Puppet::Type.type(:rabbitmq_plugin).provide(:rabbitmqplugins, parent: Puppet::Provider::Rabbitmqctl) do
if Puppet::PUPPETVERSION.to_f < 3
if Facter.value(:osfamily) == 'RedHat'
commands rabbitmqplugins: '/usr/lib/rabbitmq/bin/rabbitmq-plugins'
else
commands rabbitmqplugins: 'rabbitmq-plugins'
end
else
if Facter.value(:osfamily) == 'RedHat'
has_command(:rabbitmqplugins, '/usr/lib/rabbitmq/bin/rabbitmq-plugins') do
environment HOME: '/tmp'
end
else
has_command(:rabbitmqplugins, 'rabbitmq-plugins') do
environment HOME: '/tmp'
end
end
has_command(:rabbitmqplugins, 'rabbitmq-plugins') do
environment :HOME => "/tmp"
end

defaultfor feature: :posix
Expand Down

0 comments on commit 04a22c1

Please sign in to comment.