From 02d67a46797b1df10a1b50914c22e941527d3119 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 22 Jun 2016 20:13:29 -0300 Subject: Postfixadmin: user version from package --- manifests/virtual/web/admin.pp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/manifests/virtual/web/admin.pp b/manifests/virtual/web/admin.pp index 2ec4243..d6b8422 100644 --- a/manifests/virtual/web/admin.pp +++ b/manifests/virtual/web/admin.pp @@ -9,17 +9,20 @@ class mail::virtual::web::admin( } apache::site { "postfixadmin": - docroot => "${apache::sites_folder}/postfixadmin/site", - use => [ "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 { "${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 => File["${apache::sites_folder}/postfixadmin/site"], + require => Package['postfixadmin'], } } -- cgit v1.2.3