diff --git a/manifests/lam.pp b/manifests/lam.pp index c19b0e3..b35db35 100644 --- a/manifests/lam.pp +++ b/manifests/lam.pp @@ -3,12 +3,16 @@ # class wmdeit_ldap::lam( - $archive = "lam_7_2.tar.gz" + $archive = "lam_7_2.tar.gz", + $domain = 'default1', ) { $arcfile = "/tmp/$archive" + $extractdir = "/var/www/ldapaccountmanager" + $docroot = "$extractdir/lam" class { 'apache': + default_vhost => false, mpm_module => 'prefork', } @@ -19,6 +23,10 @@ class wmdeit_ldap::lam( class { '::php': extensions => { curl => {}, + ldap => {}, + gd => {}, + gmp => {}, + zip => {}, }, notify => Service["apache2"], require => Class["apache"] @@ -32,7 +40,16 @@ class wmdeit_ldap::lam( source => "https://srcsrv.wikimedia.de/WMDE/LDAPAccountManager/archive/$archive", extract => true, extract_path => "/var/www", - creates => "/var/www/ldapaccountmanager", + creates => $extractdir + } -> + apache::vhost { $domain: + port => '80', + docroot => $docroot + } -> + file {["$docroot/tmp","$docroot/sess"]: + ensure => directory, + owner => "www-data" } + }