blob: d6b8422db0ab4a7c13f5288c4e74b9f1eba1972c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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'],
}
}
|