summaryrefslogtreecommitdiff
path: root/manifests/register.pp
blob: 8c1ec61e1cff9b64e94d8610873b08277210644c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Register a munin client
define munin::register (
  $host         = $::fqdn,
  $port         = '4949',
  $use_ssh      = false,
  $description  = 'absent',
  $config       = [],
  $export_tag   = 'munin',
  $group        = 'absent',
)
{
  $fhost = $name
  $client_type = 'client'

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