Ensure dirsrv.target is started on boot
Change-Id: I49dcd0913d22986db514573ff393eef9f760b60f
Related-Prod: PROD-32264
diff --git a/dogtag/server.sls b/dogtag/server.sls
index 1f3746c..59d68c4 100644
--- a/dogtag/server.sls
+++ b/dogtag/server.sls
@@ -137,5 +137,13 @@
{%- endif %}
{%- endif %}
+# Ensure ldap is running and added to autostart
+service_enabled_dirsrv.target:
+ service.running:
+ - enable: True
+ - name: dirsrv.target
+ {%- if grains.get('noservices') %}
+ - onlyif: /bin/false
+ {%- endif %}
{%- endif %}