summaryrefslogtreecommitdiff
path: root/manifests/register/snmp.pp
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2013-08-25 04:01:08 -0700
committerduritong <peter.meier+github@immerda.ch>2013-08-25 04:01:08 -0700
commit9a98e96366ed2986fcce2b9a6298580583ab62c7 (patch)
treeb2dd2f25149b0752486d7c28092c468a5926663e /manifests/register/snmp.pp
parentf79c556357cdd4e0a06596b32661e3f156e2fc4f (diff)
parent42488b04b47ec3fd87f1d45ec3fa90b588545ca1 (diff)
Merge pull request #12 from oxilion/linting
lintify
Diffstat (limited to 'manifests/register/snmp.pp')
-rw-r--r--manifests/register/snmp.pp9
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/register/snmp.pp b/manifests/register/snmp.pp
index 78c3e91..06bb00b 100644
--- a/manifests/register/snmp.pp
+++ b/manifests/register/snmp.pp
@@ -1,3 +1,4 @@
+# Register a munin node with snmp enabled
define munin::register::snmp (
$community = 'public',
$description = 'absent',
@@ -10,12 +11,12 @@ define munin::register::snmp (
exec { "munin_register_snmp_${fhost}":
command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --shell | sh",
- unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null",
+ unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null",
}
@@concat::fragment{ "munin_snmp_${fhost}":
- target => '/etc/munin/munin.conf',
- content => template("munin/client.erb"),
- tag => 'munin',
+ target => '/etc/munin/munin.conf',
+ content => template('munin/client.erb'),
+ tag => 'munin',
}
}