class mail::virtual::web::admin( $postfixadmin_setup_hash = hiera('mail::virtual::web::postfixadmin_setup_hash', $mail::virtual::web::params::postfixadmin_setup_hash), ) { case $postfixadmin_setup_hash { '': { warning("You need to define mail::virtual::web::postfixadmin_setup_hash config") $setup_hash = 'changeme' } } apache::site { "postfixadmin": docroot => '/usr/share/postfixadmin', #docroot => "${apache::sites_folder}/postfixadmin/site", #use => [ "Site postfixadmin" ], mpm => false, } #file { "${apache::sites_folder}/postfixadmin/site/config.inc.php": file { "/etc/postfixadmin/config.inc.php": ensure => present, owner => www-data, group => root, mode => 0640, content => template('mail/virtual/postfixadmin/config.inc.php.erb'), #require => File["${apache::sites_folder}/postfixadmin/site"], require => Package['postfixadmin'], } }