Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / munin / manifests / check.pp
1 # enable (or disable) a munin check
2 # @param ensure check enabled/disabled
3 # @param script check to synclink
4 define munin::check(
5   Enum['present','absent'] $ensure = 'present',
6   String $script = $name
7 ) {
8   include munin
9
10   $link_target = $ensure ? {
11     present => link,
12     absent  => absent,
13   }
14
15   file { "/etc/munin/plugins/${name}":
16     ensure  => $link_target,
17     target  => "/usr/share/munin/plugins/${script}",
18     require => Package['munin-node'],
19     notify  => Service['munin-node'],
20   }
21 }