From 89aa126e431a68e5edbe3fa2e81718796b664301 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 23 Nov 2010 02:19:39 +0000 Subject: add filter compilation as this can reduce the load on server --- modules/spamassassin/manifests/init.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules/spamassassin/manifests') diff --git a/modules/spamassassin/manifests/init.pp b/modules/spamassassin/manifests/init.pp index 7562349c..6ccbeba2 100644 --- a/modules/spamassassin/manifests/init.pp +++ b/modules/spamassassin/manifests/init.pp @@ -1,6 +1,11 @@ class spamassassin { - package { "spamassassin", "spamassassin-sa-compile": + package { "spamassassin-sa-compile": + ensure => installed, + notify => "sa-compile", + } + + package { "spamassassin": ensure => installed, } @@ -12,4 +17,8 @@ class spamassassin { requires => Package["spamassassin"], content => template('spamassassin/local.cf') } + + exec { "sa-compile": + refreshonly => true, + } } -- cgit v1.2.1