summaryrefslogtreecommitdiff
path: root/manifests/virtual/packages.pp
blob: af0d817bac803ec23e4401d7173912b34c8664fc (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
41
42
43
44
45
46
47
48
49
class mail::virtual::packages {
  package { 'postfixadmin':
    ensure => present,
  }

  package { [ 'libpam-mysql', 'libgsasl7' ]:
    ensure => installed,
  }

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

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

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

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

  # Not in use right now
  package { 'roundcube-plugins-extra':
    ensure  => absent,
  }

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

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