Installs apache and php (mod_php)
This commit is contained in:
parent
5f4727b784
commit
8c33fbd0d2
|
@ -6,9 +6,33 @@ class wmdeit_ldap::lam(
|
||||||
$archive = "lam_7_2.tar.gz"
|
$archive = "lam_7_2.tar.gz"
|
||||||
|
|
||||||
) {
|
) {
|
||||||
file {"/tmp/$archive":
|
$arcfile = "/tmp/$archive"
|
||||||
ensure => file,
|
|
||||||
source => "https://srcsrv.wikimedia.de/WMDE/LDAPAccountManager/archive/$archive"
|
class { 'apache':
|
||||||
|
mpm_module => 'prefork',
|
||||||
|
}
|
||||||
|
|
||||||
|
class { 'apache::mod::php':
|
||||||
|
php_version => '7.3'
|
||||||
|
}
|
||||||
|
|
||||||
|
class { '::php':
|
||||||
|
extensions => {
|
||||||
|
curl => {},
|
||||||
|
},
|
||||||
|
notify => Service["apache2"],
|
||||||
|
require => Class["apache"]
|
||||||
|
}
|
||||||
|
|
||||||
|
file {"/var/www":
|
||||||
|
ensure => "directory"
|
||||||
|
} ->
|
||||||
|
archive {"$arcfile":
|
||||||
|
ensure => present,
|
||||||
|
source => "https://srcsrv.wikimedia.de/WMDE/LDAPAccountManager/archive/$archive",
|
||||||
|
extract => true,
|
||||||
|
extract_path => "/var/www",
|
||||||
|
creates => "/var/www/ldapaccountmanager",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue