change megaraid_sas test
[mirror/dsa-puppet.git] / modules / hardware / manifests / raid / proliant.pp
index 9f9114e..0360087 100644 (file)
@@ -28,16 +28,22 @@ class hardware::raid::proliant {
                }
 
                if $::smartarraycontroller_hpsa {
-                       concat::fragment { 'dsa-check-hpssacli':
-                               target => '/etc/cron.d/puppet-nagios-wraps',
-                               content  => @(EOF)
-                                       27 * * * * root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli
+                       $cmd = $hostname ? {
+                               'lobos' => 'dsa-check-hpssacli --no-battery',
+                               'villa' => 'dsa-check-hpssacli --no-battery',
+                               'lw08'  => 'dsa-check-hpssacli --no-battery --ignore-cache',
+                               default => 'dsa-check-hpssacli'
+                       }
+
+                       concat::fragment { 'dsa-puppet-stuff--nagios--dsa-check-hpssacli':
+                               target => '/etc/cron.d/dsa-puppet-stuff',
+                               order  => '020',
+                               content  => @("EOF")
+                                       27 */2 * * * root sleep $(( RANDOM \% 900 )); dsa-wrap-nagios-check ${cmd}
                                        | EOF
                        }
                }
-               file { '/etc/cron.d/puppet-nagios-hpsa':
-                       ensure => absent,
-               }
+               file { '/etc/cron.d/puppet-nagios-hpsa': ensure => absent, }
        } else {
                site::aptrepo { 'debian.restricted':
                        ensure => absent,