Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8396201
rabbitmq_nodename.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
416 B
Subscribers
None
rabbitmq_nodename.rb
View Options
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
Details
Attached
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
Attached To
R198 puppet-puppet-rabbitmq
Event Timeline
Log In to Comment