forked from voxpupuli/puppet-collectd
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamqp.pp
39 lines (35 loc) · 1.26 KB
/
amqp.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# https://collectd.org/wiki/index.php/Plugin:AMQP
class collectd::plugin::amqp (
$ensure = 'present',
$manage_package = undef,
$amqphost = 'localhost',
$amqpport = 5672,
$amqpvhost = 'graphite',
$amqpuser = 'graphite',
$amqppass = 'graphite',
$amqpformat = 'Graphite',
$amqpstorerates = false,
$amqpexchange = 'metrics',
Boolean $amqppersistent = true,
$amqproutingkey = 'collectd',
$graphiteprefix = 'collectd.',
$escapecharacter = '_',
$interval = undef,
Boolean $graphiteseparateinstances = false,
Boolean $graphitealwaysappendds = false,
) {
include ::collectd
$_manage_package = pick($manage_package, $::collectd::manage_package)
if $::osfamily == 'RedHat' {
if $_manage_package {
package { 'collectd-amqp':
ensure => $ensure,
}
}
}
collectd::plugin { 'amqp':
ensure => $ensure,
content => template('collectd/plugin/amqp.conf.erb'),
interval => $interval,
}
}