Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / munin / manifests / conf.pp
1 # a conf.d snippet
2 # @param ensure check enabled/disabled
3 # @param content content to put into plugon-conf.d/<name>
4 # @param source file to put into plugon-conf.d/<name>
5 define munin::conf (
6   Enum['present','absent'] $ensure = 'present',
7   Optional[String] $content = undef,
8   Optional[String] $source = undef,
9 ) {
10   include munin
11
12   file { "/etc/munin/plugin-conf.d/${name}":
13     ensure  => $ensure,
14     source  => $source,
15     content => $content,
16     require => Package['munin-node'],
17     notify  => Service['munin-node'],
18   }
19 }