use shell so we can actually pipe that command
authorMarcel Haerry <haerry@puzzle.ch>
Mon, 27 Sep 2010 10:29:31 +0000 (12:29 +0200)
committerMarcel Haerry <haerry@puzzle.ch>
Mon, 27 Sep 2010 10:29:31 +0000 (12:29 +0200)
manifests/register/snmp.pp

index c0d9279..0c3ac5c 100644 (file)
@@ -9,7 +9,7 @@ define munin::register::snmp (
     $config = [ 'use_node_name no' ]
 
     exec { "munin_register_snmp_${fhost}":
-        command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} | sh",
+        command => "munin-node-configure --snmp ${fhost} --snmpcommunity ${community} --shell | sh",
         unless => "ls /etc/munin/plugins/snmp_${fhost}_* &> /dev/null",
     }