diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2011-06-06 12:07:04 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2011-06-06 12:07:04 -0300 | 
| commit | 6c131956e7e81f59b0d3a0e2ffd1294b6bc47a36 (patch) | |
| tree | 1a730b051bc679200a67c82593d4b0b106d96fa5 | |
| parent | f483fec5610761c5b13f61415f36ef0c3e8d9926 (diff) | |
| download | puppet-mail-6c131956e7e81f59b0d3a0e2ffd1294b6bc47a36.tar.gz puppet-mail-6c131956e7e81f59b0d3a0e2ffd1294b6bc47a36.tar.bz2 | |
Changing roundcube config definition
| -rw-r--r-- | manifests/web.pp | 19 | 
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'],    }  } | 
