Puppet Class: ganglia::meta
- Defined in:
- manifests/meta.pp
Overview
Class: ganglia::meta
Configure gmetad.
This class, and the associated defines, should provide relatively comprehensive coverage of the gmetad features.
See gmetad(1) for additional details.
Authors
-
Trevor Vaughan <tvaughan@onyxpoint.com>
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'manifests/meta.pp', line 14
class ganglia::meta {
include 'ganglia'
package { 'ganglia-gmetad':
ensure => 'latest'
}
# Some hackery to get rid of the i386 version if installed since we split up
# the repos.
if $::hardwaremodel == 'x86_64' {
package { 'ganglia-gmetad.i386':
ensure => 'absent',
notify => Package['ganglia-gmetad']
}
}
concat_build { 'gmetad':
target => '/etc/ganglia/gmetad.conf',
order => ['*.conf'],
require => File['/etc/ganglia']
}
file { '/etc/ganglia/gmetad.conf':
owner => 'root',
group => 'root',
mode => '0644',
audit => content,
notify => Service['gmetad'],
subscribe => Concat_build['gmetad']
}
# Simply allow blanket IGMP...when you need it, you need it.
iptables_rule { 'allow_igmp':
content => '-p igmp -j ACCEPT',
apply_to => 'all'
}
service { 'gmetad':
ensure => 'running',
enable => true,
hasstatus => true,
hasrestart => true,
require => Package['ganglia-gmetad']
}
}
|