From 0564e0c6662530d56ef7276a5ecb53881a218b5a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 28 Aug 2017 13:49:37 +0200 Subject: [PATCH] run dsa-check-hpssacli out of cron on smartarraycontroller_hpsa hosts --- modules/hardware/manifests/raid/proliant.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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, -- 2.20.1