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
36
37
|
class nodo::utils::network::mail (
$ensure = 'installed',
) {
# Mail
package { [
'mutt',
'muttprofile',
'notmuch-mutt',
'offlineimap',
'bogofilter',
'fetchmail',
'getmail',
#'getmail6',
'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'],
}
}
|