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":
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'],
}
}
// 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