From ada2a1dd5c06f69eb3ba3e69ffa21a1a550ec403 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 28 Aug 2017 14:39:39 +0200 Subject: [PATCH] Split header of puppet-nagios-wraps into own fragment, set orders --- modules/hardware/manifests/raid/proliant.pp | 1 + modules/nagios/manifests/client.pp | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/hardware/manifests/raid/proliant.pp b/modules/hardware/manifests/raid/proliant.pp index 9f9114e8c..39e37d3ef 100644 --- a/modules/hardware/manifests/raid/proliant.pp +++ b/modules/hardware/manifests/raid/proliant.pp @@ -30,6 +30,7 @@ class hardware::raid::proliant { if $::smartarraycontroller_hpsa { concat::fragment { 'dsa-check-hpssacli': target => '/etc/cron.d/puppet-nagios-wraps', + order => '020', content => @(EOF) 27 * * * * root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli | EOF diff --git a/modules/nagios/manifests/client.pp b/modules/nagios/manifests/client.pp index b31cd60ef..45acf85c1 100644 --- a/modules/nagios/manifests/client.pp +++ b/modules/nagios/manifests/client.pp @@ -77,11 +77,18 @@ class nagios::client inherits nagios { } concat { '/etc/cron.d/puppet-nagios-wraps': } - concat::fragment { 'dsa-check_puppet_agent': + concat::fragment { 'puppet-nagios-wraps--header': target => '/etc/cron.d/puppet-nagios-wraps', + order => '000', content => @(EOF) SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/nagios/plugins + | EOF + } + concat::fragment { 'dsa-check_puppet_agent': + target => '/etc/cron.d/puppet-nagios-wraps', + order => '010', + content => @(EOF) 47 * * * * root dsa-wrap-nagios-check -s puppet-agent dsa-check_puppet_agent -d0 -c 28800 -w 18000 | EOF } -- 2.20.1