summaryrefslogtreecommitdiff
path: root/manifests/register.pp
blob: e1271e1ef992442dc7122dcede5f4a74d006a149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
define munin::register()
{
	$munin_port_real = $munin_port ? { '' => 4949, default => $munin_port } 
	$munin_host_real = $munin_host ? {
		'' => $fqdn,
		'fqdn' => $fqdn,
		default => $munin_host
	}

	@@file { "/var/lib/puppet/modules/munin/nodes/${name}_${munin_port_real}":
		ensure => present,
		content => template("munin/defaultclient.erb"),
		tag => 'munin',
	}
}