changeset 38:a1960fb961c5 puppet-3.6

Move APF refresh command to node template, as it won't work on boxes without it!
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2015 20:22:36 +0000
parents addb0ea390a1
children d6f2a0ee45c0
files manifests/nodes.pp manifests/templates.pp
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/nodes.pp	Sat Mar 14 20:09:45 2015 +0000
+++ b/manifests/nodes.pp	Sat Mar 14 20:22:36 2015 +0000
@@ -7,6 +7,11 @@
 		imapserver => 'imap.ibboard.co.uk',
 		firewall_cmd => 'apf',
 	}
+	cron { 'apf-refresh':
+		command => '/etc/apf/apf --refresh >> /dev/null 2>&1 &',
+		hour => '*/6',
+		minute => '45'
+	}
 }
 
 node 'clouduk.ibboard.co.uk' {
--- a/manifests/templates.pp	Sat Mar 14 20:09:45 2015 +0000
+++ b/manifests/templates.pp	Sat Mar 14 20:22:36 2015 +0000
@@ -511,11 +511,6 @@
 		hour => 3,
 		minute => 2
 	}
-	cron { 'apf-refresh':
-		command => '/etc/apf/apf --refresh >> /dev/null 2>&1 &',
-		hour => '*/6',
-		minute => '45'
-	}
 	# Since we're only managing the local server, use "puppet apply" instead of PuppetMaster
 	cron { 'puppet':
 		command => 'puppet apply /etc/puppet/manifests/site.pp | grep -v "Finished catalog run in"',