summaryrefslogtreecommitdiff
path: root/manifests/web.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-06-06 12:07:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-06-06 12:07:04 -0300
commit6c131956e7e81f59b0d3a0e2ffd1294b6bc47a36 (patch)
tree1a730b051bc679200a67c82593d4b0b106d96fa5 /manifests/web.pp
parentf483fec5610761c5b13f61415f36ef0c3e8d9926 (diff)
downloadpuppet-mail-6c131956e7e81f59b0d3a0e2ffd1294b6bc47a36.tar.gz
puppet-mail-6c131956e7e81f59b0d3a0e2ffd1294b6bc47a36.tar.bz2
Changing roundcube config definition
Diffstat (limited to 'manifests/web.pp')
-rw-r--r--manifests/web.pp19
1 files changed, 10 insertions, 9 deletions
diff --git a/manifests/web.pp b/manifests/web.pp
index db49ddc..d0ddf29 100644
--- a/manifests/web.pp
+++ b/manifests/web.pp
@@ -25,15 +25,16 @@ class mail::web::virtual inherits websites::setup {
require => File["${apache_sites_folder}/postfixadmin/site"],
}
- if $lsbdistcodename != 'lenny' {
- file { "/etc/roundcube/main.inc.php":
- ensure => present,
- owner => root,
- group => www-data,
- mode => 0640,
- source => "puppet:///modules/mail/roundcube/main.inc.php",
- require => Package['roundcube'],
- }
+ file { "/etc/roundcube/main.inc.php":
+ ensure => $lsbdistcodename ? {
+ 'lenny' => absent,
+ default => present,
+ },
+ owner => root,
+ group => www-data,
+ mode => 0640,
+ source => "puppet:///modules/mail/roundcube/main.inc.php",
+ require => Package['roundcube'],
}
}