Creates an ads contextentry and sets shutdownport to 0
This commit is contained in:
parent
858ab0815d
commit
e03c2b623e
|
@ -37,7 +37,7 @@ Apache Directory Server Config:
|
||||||
ads_home: {{ads.opt_dir}}/ads
|
ads_home: {{ads.opt_dir}}/ads
|
||||||
java_home: {{java.java_home}}
|
java_home: {{java.java_home}}
|
||||||
java_opts: ""
|
java_opts: ""
|
||||||
ads_shutdown_port: ""
|
ads_shutdown_port: "0"
|
||||||
ads_instances: {{ads.instances}}
|
ads_instances: {{ads.instances}}
|
||||||
- require:
|
- require:
|
||||||
- AdsDirs
|
- AdsDirs
|
||||||
|
@ -60,6 +60,15 @@ ADS Instance{{key}} Log Props:
|
||||||
- defaults:
|
- defaults:
|
||||||
log_file: "/tmp/{{key}}.log"
|
log_file: "/tmp/{{key}}.log"
|
||||||
|
|
||||||
|
|
||||||
|
# Create a base 64 encoded ads-contextentry
|
||||||
|
# see: https://directory.apache.org/apacheds/basic-ug/1.4.3-adding-partition.html
|
||||||
|
|
||||||
|
{%
|
||||||
|
set ads_contextentry = "dn: "+'dc=planix,dc=org\n'+"dc: "+key+"\n"+
|
||||||
|
"objectclass: domain\nobjectclass: top\n\n"
|
||||||
|
%}
|
||||||
|
|
||||||
{%- if not salt['file.file_exists' ](ads.instances +"/" + key + "/conf/config.ldif_migrated") %}
|
{%- if not salt['file.file_exists' ](ads.instances +"/" + key + "/conf/config.ldif_migrated") %}
|
||||||
ADS Instance{{key}} New Conf Dir:
|
ADS Instance{{key}} New Conf Dir:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
@ -70,7 +79,7 @@ ADS Instance{{key}} New Conf Dir:
|
||||||
partitionid: tube
|
partitionid: tube
|
||||||
partitionsuffix: "dc=planix,dc=org"
|
partitionsuffix: "dc=planix,dc=org"
|
||||||
ldap_port: 12389
|
ldap_port: 12389
|
||||||
ads_contextentry: ""
|
ads_contextentry: "{{ads_contextentry | base64_encode }}"
|
||||||
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue