Installs apache and php (mod_php)

This commit is contained in:
Tobias Herre 2020-08-18 18:04:27 +02:00
parent 5f4727b784
commit 8c33fbd0d2
1 changed files with 27 additions and 3 deletions

View File

@ -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",
} }
} }