From 8c33fbd0d213c200cc822f4ea719070f8e8cead8 Mon Sep 17 00:00:00 2001 From: tohe Date: Tue, 18 Aug 2020 18:04:27 +0200 Subject: [PATCH] Installs apache and php (mod_php) --- manifests/lam.pp | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/manifests/lam.pp b/manifests/lam.pp index b9f6c3d..c19b0e3 100644 --- a/manifests/lam.pp +++ b/manifests/lam.pp @@ -6,9 +6,33 @@ class wmdeit_ldap::lam( $archive = "lam_7_2.tar.gz" ) { - file {"/tmp/$archive": - ensure => file, - source => "https://srcsrv.wikimedia.de/WMDE/LDAPAccountManager/archive/$archive" + $arcfile = "/tmp/$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", } }