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(
|
class wmdeit_ldap::lam(
|
||||||
$archive = "lam_7_2.tar.gz"
|
$archive = "lam_7_2.tar.gz",
|
||||||
|
$domain = 'default1',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
$arcfile = "/tmp/$archive"
|
$arcfile = "/tmp/$archive"
|
||||||
|
$extractdir = "/var/www/ldapaccountmanager"
|
||||||
|
$docroot = "$extractdir/lam"
|
||||||
|
|
||||||
class { 'apache':
|
class { 'apache':
|
||||||
|
default_vhost => false,
|
||||||
mpm_module => 'prefork',
|
mpm_module => 'prefork',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +23,10 @@ class wmdeit_ldap::lam(
|
||||||
class { '::php':
|
class { '::php':
|
||||||
extensions => {
|
extensions => {
|
||||||
curl => {},
|
curl => {},
|
||||||
|
ldap => {},
|
||||||
|
gd => {},
|
||||||
|
gmp => {},
|
||||||
|
zip => {},
|
||||||
},
|
},
|
||||||
notify => Service["apache2"],
|
notify => Service["apache2"],
|
||||||
require => Class["apache"]
|
require => Class["apache"]
|
||||||
|
@ -32,7 +40,16 @@ class wmdeit_ldap::lam(
|
||||||
source => "https://srcsrv.wikimedia.de/WMDE/LDAPAccountManager/archive/$archive",
|
source => "https://srcsrv.wikimedia.de/WMDE/LDAPAccountManager/archive/$archive",
|
||||||
extract => true,
|
extract => true,
|
||||||
extract_path => "/var/www",
|
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