Skip to content

Commit

Permalink
Update fallback path for CLI commands to /usr/sbin
Browse files Browse the repository at this point in the history
Fixes voxpupuli#763
Fixes voxpupuli#748

This should resolve an idempotency issue, at least on certain platforms, by
using the version of rabbitmqctl / rabbitmq-plugins in /usr/sbin (the wrapper)
vs. the one in /usr/lib/rabbitmq/bin
  • Loading branch information
wyardley committed Jan 16, 2019
1 parent 2b95594 commit 252bf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rabbitmq_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Puppet::Provider::RabbitmqCli < Puppet::Provider
initvars

def self.rabbitmq_command(name, binary)
path = Puppet::Util.which(binary) || "/usr/lib/rabbitmq/bin/#{binary}"
path = Puppet::Util.which(binary) || "/usr/sbin/#{binary}"
home_tmp_command name, path
end

Expand Down

0 comments on commit 252bf67

Please sign in to comment.