summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/web.pp7
-rw-r--r--templates/roundcube/main.inc.php.erb (renamed from files/roundcube/main.inc.php)2
2 files changed, 7 insertions, 2 deletions
diff --git a/manifests/web.pp b/manifests/web.pp
index d0ddf29..4f9e2a1 100644
--- a/manifests/web.pp
+++ b/manifests/web.pp
@@ -1,4 +1,9 @@
class mail::web::virtual inherits websites::setup {
+ # Class configuration
+ case $roundcube_des_key {
+ '': { fail("You need to define \$roundcube_des_key host config") }
+ }
+
include php::imap
apache::site { "postfixadmin":
@@ -33,7 +38,7 @@ class mail::web::virtual inherits websites::setup {
owner => root,
group => www-data,
mode => 0640,
- source => "puppet:///modules/mail/roundcube/main.inc.php",
+ content => template('mail/roundcube/main.inc.php.erb'),
require => Package['roundcube'],
}
}
diff --git a/files/roundcube/main.inc.php b/templates/roundcube/main.inc.php.erb
index a34b85d..9308569 100644
--- a/files/roundcube/main.inc.php
+++ b/templates/roundcube/main.inc.php.erb
@@ -161,7 +161,7 @@ $rcmail_config['double_auth'] = false;
// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
-$rcmail_config['des_key'] = 'TitQ4HwK88JruEnjSse43ewU';
+$rcmail_config['des_key'] = '<%= roundcube_des_key %>';
// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR