Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392328
plugin.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
959 B
Subscribers
None
plugin.pp
View Options
# Define: rabbitmq::plugin
#
# This defined resource type manages plugins for RabbitMQ
#
# NOTE: It is reommended to use packages to manage plugins if at all
# possible. There are packages for stomp and amqp available in the prosvc
# repository at http://yum.puppetlabs.com/prosvc/
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
define
rabbitmq
::
plugin
(
$ensure=present,
$source='UNSET')
{
$plugin_dir
=
$::rabbitmq::server::plugin_dir_real
if
$source
==
'UNSET'
{
$source_real
=
"puppet:///modules/rabbitmq/plugins/${name}"
}
else
{
validate_re
(
$source,
'^(/|puppet://)'
)
$source_real
=
$source
}
validate_re
(
$ensure,
'^(present|absent)$'
)
$ensure_real
=
$ensure
file
{
"${plugin_dir}/${name}"
:
ensure
=>
$ensure_real,
source
=>
$source_real,
owner
=>
'0'
,
group
=>
'0'
,
mode
=>
'0644'
,
require
=>
Class
[
'rabbitmq'
],
notify
=>
Class
[
'rabbitmq::service'
],
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:57 PM (11 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398874
Attached To
R198 puppet-puppet-rabbitmq
Event Timeline
Log In to Comment