class mail::web inherits websites::setup { include php::imap apache::site { "postfixadmin": docroot => "${apache_sites_folder}/postfixadmin/site", use => [ "Site postfixadmin" ], } apache::site { "mail": docroot => "/usr/share/squirrelmail", source => true, } file { "${apache_sites_folder}/postfixadmin/site/config.inc.php": ensure => present, owner => www-data, group => root, mode => 0640, content => template('mail/postfixadmin/config.inc.php.erb'), require => File["${apache_sites_folder}/postfixadmin/site"], } } class mail::web::sympa { apache::site { "$sympa_subdomain": docroot => "${apache_sites_folder}/$sympa_subdomain/site", source => true, } }