]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Changing roundcube config definition
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 6 Jun 2011 15:07:04 +0000 (12:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 6 Jun 2011 15:07:04 +0000 (12:07 -0300)
manifests/web.pp

index db49ddc7dec2949939018218718a516a1bdd19cc..d0ddf2937c0a3fa47772f777f47e47cb35a71d92 100644 (file)
@@ -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'],
   }
 }