init.sls 509 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # LDAP server configuration
  3. #
  4. slapd:
  5. pkg.installed:
  6. - name: slapd
  7. service.running:
  8. - restart: True
  9. ldap-utils:
  10. pkg.installed
  11. # Remove slapd.d config directory
  12. /etc/ldap/slapd.d:
  13. file.absent
  14. # Install proper slapd.conf
  15. /etc/ldap/slapd.conf:
  16. file.managed:
  17. - source: salt://slapd/slapd.conf.H_{{ grains.id }}
  18. - watch_in:
  19. - service: slapd
  20. # Listen on ldaps!
  21. /etc/default/slapd:
  22. file.managed:
  23. - source: salt://slapd/slapd.default
  24. - watch_in:
  25. - service: slapd