From c95f0b2fcf4f35b1a7ae3ad9c04600a32ab2bb43 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 13 Jun 2012 20:40:57 -0300 Subject: migrate away from hiera stuff --- manifests/register/snmp.pp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'manifests/register/snmp.pp') diff --git a/manifests/register/snmp.pp b/manifests/register/snmp.pp index 3007b67..78c3e91 100644 --- a/manifests/register/snmp.pp +++ b/manifests/register/snmp.pp @@ -1,18 +1,13 @@ define munin::register::snmp ( $community = 'public', $description = 'absent', - $port = 'absent' + $port = '4949', + $host = $::fqdn ) { $fhost = $name - $munin_host_real = $::fqdn $client_type = 'snmp' $config = [ 'use_node_name no' ] - $munin_port_real = $port ? { - 'absent' => hiera('munin_port','4949'), - default => $port - } - exec { "munin_register_snmp_${fhost}": command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --shell | sh", unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null", -- cgit v1.2.3