diff manifests/templates.pp @ 97:b69e3f6708d6 puppet-3.6

Add another regular command to check that we've not got services requiring a restart
author IBBoard <dev@ibboard.co.uk>
date Wed, 27 Jan 2016 20:18:32 +0000
parents 009a7a75ddfd
children a0b9a810cf7d
line wrap: on
line diff
--- a/manifests/templates.pp	Tue Jan 26 20:15:23 2016 +0000
+++ b/manifests/templates.pp	Wed Jan 27 20:18:32 2016 +0000
@@ -655,4 +655,11 @@
 		minute => '30',
 		weekday => '0-6/3', #Sunday, Wednesday and Saturday morning
 	}
+	# And check whether anything needs restarting
+	cron { 'check-needs-restarting':
+		command => '/usr/bin/needs-restarting|grep -v "/usr/lib/systemd\|/usr/sbin/lvmetad\|/usr/lib/polkit-1/polkitd"',
+		hour => '4',
+		minute => '45',
+		weekday => '0-6/3', #Sunday, Wednesday and Saturday morning
+	}
 }