Puppet Class: ganglia::client
- Defined in:
- manifests/client.pp
Overview
Class: ganglia::client
This class installs the ganglia client
Parameters:
$cluster
default unspecified
this is the name of the cluster
$udp_port
default 8649
this is the udp port to multicast metrics on
Actions:
installs the ganglia client
Sample Usage:
include ganglia::client
or
class {'ganglia::client': cluster => 'mycluster' }
or
class {'ganglia::client':
cluster => 'mycluster',
udp_port => '1234';
}
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'manifests/client.pp', line 31
class ganglia::client ($cluster='unspecified', $udp_port='8649') {
$ganglia_client_pkg = 'ganglia-monitor'
package {$ganglia_client_pkg:
ensure => 'installed',
alias => 'ganglia_client',
}
service {'ganglia-monitor':
ensure => 'running',
require => Package[$ganglia_client_pkg];
}
file {'/etc/ganglia/gmond.conf':
ensure => present,
require => Package['ganglia_client'],
content => template('ganglia/gmond.conf'),
notify => Service['ganglia-monitor'];
}
}
|