Compare commits

...

2 Commits

Author SHA1 Message Date
Tobias Herre 99c9f2a8c0 Added list of puppet modules needed 2020-08-18 18:04:47 +02:00
Tobias Herre 8c33fbd0d2 Installs apache and php (mod_php) 2020-08-18 18:04:27 +02:00
2 changed files with 37 additions and 4 deletions

View File

@ -1,3 +1,12 @@
# puppet-wmdeit_ldap
A puppet module to configure our OpenLDAP servers
To get it running:
puppet module install camptocamp-openldap
For LAM
puppet module install puppetlabs-apache
puppet module install puppet-php

View File

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