Page MenuHomeSoftware Heritage

rabbitmq_nodename.rb
No OneTemporary

rabbitmq_nodename.rb

Facter.add(:rabbitmq_nodename) do
setcode do
if Facter::Util::Resolution.which('rabbitmqctl')
rabbitmq_nodename = Facter::Core::Execution.execute('rabbitmqctl status 2>&1')
begin
%r{^Status of node '?([\w\.\-]+@[\w\.\-]+)'?}.match(rabbitmq_nodename)[1]
rescue
Facter.debug("Error: rabbitmq_nodename facter failed. Output was #{rabbitmq_nodename}")
end
end
end
end

File Metadata

Mime Type
text/plain
Expires
Jun 4 2025, 7:50 PM (12 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3282249

Event Timeline