comparison 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
comparison
equal deleted inserted replaced
84:ae30d98f294f 85:50dd78dbf3db
564 mailserver => $mailserver, 564 mailserver => $mailserver,
565 } 565 }
566 class { 'dovecot': 566 class { 'dovecot':
567 imapserver => $imapserver, 567 imapserver => $imapserver,
568 } 568 }
569 package { [ 'amavisd-new', 'clamav', 'clamav-server-systemd', 'clamav-update' ]:
570 ensure => installed,
571 tag => 'av',
572 }
573 file { '/etc/freshclam.conf':
574 ensure => present,
575 source => 'puppet:///common/freshclam.conf',
576 tag => 'av',
577 }
578 file { '/etc/sysconfig/freshclam':
579 ensure => present,
580 source => 'puppet:///common/freshclam',
581 tag => 'av',
582 }
583 file { '/etc/amavisd/amavisd.conf':
584 ensure => present,
585 source => 'puppet:///private/postfix/amavisd.conf',
586 tag => 'av',
587 }
588 Package<| tag == 'av' |> -> File<| tag == 'av' |>
569 } 589 }
570 590
571 class cronjobs { 591 class cronjobs {
572 # Add Mutt for scripts that send emails, but stop it clogging the disk by keeping copies of emails 592 # Add Mutt for scripts that send emails, but stop it clogging the disk by keeping copies of emails
573 package { 'mutt': 593 package { 'mutt':