diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2010-09-27 12:30:08 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2010-09-27 12:30:08 +0200 |
commit | f3acecb57d7fde7760f2b74506589b9f4565947a (patch) | |
tree | 9954256018e55829ec27ad0d76388174070927df /manifests | |
parent | 88fec38166f51bf8edabba6769a198016b799f1e (diff) |
use shell so we can actually pipe that command
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/register/snmp.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/register/snmp.pp b/manifests/register/snmp.pp index c0d9279..0c3ac5c 100644 --- a/manifests/register/snmp.pp +++ b/manifests/register/snmp.pp @@ -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", } |