diff options
-rw-r--r-- | manifests/packages.pp | 10 | ||||
-rw-r--r-- | manifests/web.pp | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/manifests/packages.pp b/manifests/packages.pp index 027d187..4a3b26e 100644 --- a/manifests/packages.pp +++ b/manifests/packages.pp @@ -18,11 +18,17 @@ class mail::packages::virtual { ensure => installed, } - package { [ 'squirrelmail', 'squirrelmail-locales', 'imp4', - 'roundcube', 'roundcube-sqlite' ]: + package { [ 'squirrelmail', 'squirrelmail-locales', 'imp4' ]: ensure => installed, } + # Squeeze (or newer) packages + if $lsbdistcodename != 'lenny' { + package { [ 'roundcube', 'roundcube-sqlite' ]: + ensure => installed, + } + } + # We'll force SSL through the proxy package { 'squirrelmail-secure-login': ensure => absent, diff --git a/manifests/web.pp b/manifests/web.pp index 29a5b57..ed32087 100644 --- a/manifests/web.pp +++ b/manifests/web.pp @@ -8,8 +8,10 @@ class mail::web::virtual inherits websites::setup { } apache::site { "mail": - #docroot => "/usr/share/squirrelmail", - docroot => "/var/lib/roundcube", + docroot => $lsbdistcodename ? { + 'lenny' => "/usr/share/squirrelmail", + default => "/var/lib/roundcube", + } source => true, mpm => false, } |