Parameters for partiotion und paritionsuffix
This commit is contained in:
parent
6e1ffcd954
commit
6f3a56b93d
|
@ -37,12 +37,24 @@ inherits ::plnxtools
|
|||
|
||||
|
||||
define plnxtools::apacheds::instance(
|
||||
$ensure = running
|
||||
$ensure = running,
|
||||
$ldap_port = 10389,
|
||||
$ldaps_port = 10638,
|
||||
$partitionsuffix,
|
||||
$partitionid
|
||||
|
||||
) {
|
||||
$ads_instances = $plnxtools::apacheds::ads_instances
|
||||
$log_file = "$plnxtools::apacheds::ads_logdir/$title.log"
|
||||
|
||||
#
|
||||
# Create a base 64 encoded ads-contextentry
|
||||
# see: https://directory.apache.org/apacheds/basic-ug/1.4.3-adding-partition.html
|
||||
#
|
||||
$ads_contextentry0 = base64('encode',"dn: $partitionsuffix\ndc: uniadmin\nobjectclass: domain\nobjectclass: top\n\n")
|
||||
$ads_contextentry = strip(regsubst($ads_contextentry0, '\n', "\n "))
|
||||
|
||||
|
||||
file{"$ads_instances/$title":
|
||||
ensure => directory
|
||||
} ->
|
||||
|
@ -58,8 +70,13 @@ define plnxtools::apacheds::instance(
|
|||
file{"$ads_instances/$title/conf/log4j.properties":
|
||||
ensure => file,
|
||||
content => template ("plnxtools/apacheds/log4j.properties.erb"),
|
||||
}->
|
||||
file{"$ads_instances/$title/conf/config.ldif":
|
||||
ensure => file,
|
||||
content => template ("plnxtools/apacheds/config.ldif.erb"),
|
||||
}
|
||||
|
||||
|
||||
$bin_dir = "${plnxtools::apacheds::opt_dir}/${plnxtools::apacheds::appname}/bin"
|
||||
|
||||
service {"apacheds_${title}":
|
||||
|
|
Loading…
Reference in New Issue