e1271e1ef992442dc7122dcede5f4a74d006a149
[puppet_munin.git] / manifests / register.pp
1 define munin::register()
2 {
3         $munin_port_real = $munin_port ? { '' => 4949, default => $munin_port } 
4         $munin_host_real = $munin_host ? {
5                 '' => $fqdn,
6                 'fqdn' => $fqdn,
7                 default => $munin_host
8         }
9
10         @@file { "/var/lib/puppet/modules/munin/nodes/${name}_${munin_port_real}":
11                 ensure => present,
12                 content => template("munin/defaultclient.erb"),
13                 tag => 'munin',
14         }
15 }
16
17