summaryrefslogtreecommitdiff
path: root/manifests/virtual/packages.pp
blob: 1297731e1bdf42b3e688f8ce0e06e0de4680845d (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
36
37
38
39
40
class mail::virtual::packages {
  package { [ 'libpam-mysql', 'libgsasl7' ]:
    ensure => installed,
  }

  package { [ 'postfix-mysql', 'dovecot-imapd', 'maildrop', 'dovecot-mysql', 'dovecot-sieve' ]:
    ensure => installed,
  }

  package { [ 'squirrelmail', 'squirrelmail-locales' ]:
    ensure => installed,
  } 

  package { 'php-crypt-gpg':
    ensure => $::lsbdistcodename ? {
      'wheezy' => absent,
       default => installed,
    },
  }

  # Squeeze (or newer) packages
  if $::lsbdistcodename != 'lenny' {
    package { [ 'roundcube', 'roundcube-sqlite3', 'roundcube-plugins', 'roundcube-plugins-extra', 'roundcube-mysql' ]:
      ensure => latest,
    } 
  }

  # We'll force SSL through the proxy
  package { 'squirrelmail-secure-login':
    ensure => absent,
  }

  # Old packages
  package { 'imp4':
    ensure => $::lsbdistcodename ? {
      'squeeze' => installed,
      default   => absent,
    }
  } 
}