aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/network/mail.pp
blob: ea1d580f7c8f302f86354ea7897749e70178b367 (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
26
27
28
29
30
31
32
33
34
35
class nodo::utils::network::mail (
  $ensure = 'installed',
) {
  # Mail
  package { [
    'mutt',
    'muttprofile',
    'notmuch-mutt',
    'offlineimap',
    'bogofilter',
    'fetchmail',
    'procmail',
  ]:
    ensure => $ensure,
  }

  if !defined(Package['msmtp']) {
    package { 'msmtp':
      ensure => present,
    }
  }

  package { [
    'mutt-patched',
  ]:
    ensure => absent,
  }

  # Fix: ensure that fetchmail is not a service
  service { 'fetchmail':
    ensure  => stopped,
    enable  => false,
    require => Package['fetchmail'],
  }
}