moved installation of openldap

This commit is contained in:
Tobias Herre 2020-08-18 15:23:59 +02:00
parent c53d187b06
commit f011188434
1 changed files with 8 additions and 8 deletions

View File

@ -85,6 +85,13 @@ class wmdeit_ldap (
$privkey = "$ssldir/priv.pem" $privkey = "$ssldir/priv.pem"
$cacert = "$ssldir/ca.pem" $cacert = "$ssldir/ca.pem"
class { 'openldap::server':
ssl_ca => "$cacert",
ssl_cert => "$pubcert",
ssl_key => "$privkey",
ldaps_ifs => ['/'],
}
file { "/etc/ldap": file { "/etc/ldap":
ensure => directory ensure => directory
} -> } ->
@ -117,17 +124,10 @@ class wmdeit_ldap (
owner => "openldap", owner => "openldap",
group => "openldap", group => "openldap",
mode => "0600", mode => "0600",
} ->
class { 'openldap::server':
ssl_ca => "$cacert",
ssl_cert => "$pubcert",
ssl_key => "$privkey",
ldaps_ifs => ['/'],
} }
# openldap::server::globalconf { 'TLSCACertificateFile': # openldap::server::globalconf { 'TLSCACertificateFile':
# ensure => present, # ensure => present,
# value => { "TLSCACertificateFile"=>"$ssldir/ca.pem" } # value => { "TLSCACertificateFile"=>"$ssldir/ca.pem" }