diff manifests/templates.pp @ 85:50dd78dbf3db puppet-3.6

Fight back against spam * Enable more Postscreen settings * Configure Amavis for SpamAssassin and AV
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Dec 2015 20:26:22 +0000
parents b7c8f97017e5
children 4f59d2fcd521
line wrap: on
line diff
--- a/manifests/templates.pp	Wed Dec 23 11:16:17 2015 +0000
+++ b/manifests/templates.pp	Sat Dec 26 20:26:22 2015 +0000
@@ -566,6 +566,26 @@
 	class { 'dovecot':
 		imapserver => $imapserver,
 	}
+	package { [ 'amavisd-new', 'clamav', 'clamav-server-systemd', 'clamav-update' ]:
+		ensure => installed,
+		tag => 'av',
+	}
+	file { '/etc/freshclam.conf':
+		ensure => present,
+		source => 'puppet:///common/freshclam.conf',
+		tag => 'av',
+	}
+	file { '/etc/sysconfig/freshclam':
+		ensure => present,
+		source => 'puppet:///common/freshclam',
+		tag => 'av',
+	}
+	file { '/etc/amavisd/amavisd.conf':
+		ensure => present,
+		source => 'puppet:///private/postfix/amavisd.conf',
+		tag => 'av',
+	}
+	Package<| tag == 'av' |> -> File<| tag == 'av' |>
 }
 
 class cronjobs {