aboutsummaryrefslogtreecommitdiffstats
path: root/modules/spamassassin/manifests/init.pp
blob: 44a9150b18e5ea1526dea3e891e0edeca44a5d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class spamassassin {

    package { "spamassassin-sa-compile":
        ensure => installed,
        notify => Exec["sa-compile"],
    }

    package { "spamassassin":
        ensure => installed, 
    }

    file { "/etc/mail/spamassassin/local.cf":
        ensure => present,
        owner => root,
        group => root,
        mode => 644,
        require => Package["spamassassin"],
        content => template('spamassassin/local.cf')
    }

    exec { "sa-compile":
        refreshonly => true,
        require => Package["spamassassin-sa-compile"],
    }
}