Compare commits
2 Commits
5f4727b784
...
99c9f2a8c0
Author | SHA1 | Date |
---|---|---|
Tobias Herre | 99c9f2a8c0 | |
Tobias Herre | 8c33fbd0d2 |
|
@ -1,3 +1,12 @@
|
||||||
# puppet-wmdeit_ldap
|
# puppet-wmdeit_ldap
|
||||||
|
|
||||||
A puppet module to configure our OpenLDAP servers
|
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
|
||||||
|
|
||||||
|
|
|
@ -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