Installs all php modules for LAM and creates an working virtual host to let apache server LAM
This commit is contained in:
parent
99c9f2a8c0
commit
edea92c625
|
@ -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"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue