X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fproliant.pp;h=9f9114e8c9480ecf6d02b2601611b03570f9eaf9;hb=97bb59312bddfa861db8b588a94df270320b28c1;hp=b8dca1a0fad15b68e260871f3cc15629a11b0112;hpb=274f82d750eb0661b6336b87a8e21167615957af;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/proliant.pp b/modules/hardware/manifests/raid/proliant.pp index b8dca1a0f..9f9114e8c 100644 --- a/modules/hardware/manifests/raid/proliant.pp +++ b/modules/hardware/manifests/raid/proliant.pp @@ -27,17 +27,16 @@ 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 + | EOF + } + } file { '/etc/cron.d/puppet-nagios-hpsa': - ensure => ($::smartarraycontroller_hpsa) ? { - true => 'present', - default => 'absent' - }, - content => @(EOF) - SHELL=/bin/bash - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/nagios/plugins - 42 * * * 0 root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli - | EOF - + ensure => absent, } } else { site::aptrepo { 'debian.restricted':