From: Peter Palfrader Date: Mon, 28 Aug 2017 11:49:37 +0000 (+0200) Subject: run dsa-check-hpssacli out of cron on smartarraycontroller_hpsa hosts X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;ds=sidebyside;h=0564e0c6662530d56ef7276a5ecb53881a218b5a;p=mirror%2Fdsa-puppet.git run dsa-check-hpssacli out of cron on smartarraycontroller_hpsa hosts --- diff --git a/modules/hardware/manifests/raid/proliant.pp b/modules/hardware/manifests/raid/proliant.pp index a19ec2849..711703b78 100644 --- a/modules/hardware/manifests/raid/proliant.pp +++ b/modules/hardware/manifests/raid/proliant.pp @@ -26,6 +26,19 @@ class hardware::raid::proliant { ensure => installed, } } + + 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 + + } } else { site::aptrepo { 'debian.restricted': ensure => absent,