summaryrefslogtreecommitdiff
path: root/manifests/register/snmp.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-13 20:40:57 -0300
committermh <mh@immerda.ch>2012-06-13 20:40:57 -0300
commitc95f0b2fcf4f35b1a7ae3ad9c04600a32ab2bb43 (patch)
treeb643e6144b1fe32cdba08692cce075a0fc2aa2b5 /manifests/register/snmp.pp
parentb4a30b6255ca495b98803317ad691fa1a26a4987 (diff)
migrate away from hiera stuff
Diffstat (limited to 'manifests/register/snmp.pp')
-rw-r--r--manifests/register/snmp.pp9
1 files changed, 2 insertions, 7 deletions
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",