summaryrefslogtreecommitdiff
path: root/manifests/register.pp
blob: 9257ca176f98cf2e4d60d1c8e9b8eb8a575c3966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
define munin::register (
  $host = $::fqdn,
  $port = '4949',
  $description = 'absent',
  $config = []
)
{
  $fhost = $name
  $client_type = 'client'

  @@concat::fragment{ "munin_client_${fhost}_${port}":
    target => '/etc/munin/munin.conf',
    content => template("munin/client.erb"),
    tag => 'munin',
  }
}