gvasalt/states/ldapserver/init.sls
Jan Dittberner 7381b5bfd8 Implement proper provisioning for gvaldap
- merge improvements from the internal saltstack repository
- define dummy secrets in the pillars
- use systemd to setup the gvaldap celery worker
2020-03-04 00:10:16 +01:00

18 lines
594 B
Text

ldapserver-packages:
debconf.set:
- name: slapd
- data:
'slapd/domain': {'type': 'string', 'value': '{{ salt["pillar.get"]("gnuviechadmin:ldap_domain") }}'}
'slapd/password1': {'type': 'string', 'value': '{{ salt["pillar.get"]("slapd:admin_password") }}'}
'slapd/password2': {'type': 'string', 'value': '{{ salt["pillar.get"]("slapd:admin_password") }}'}
pkg.installed:
- pkgs:
- ldap-utils
- ldapscripts
- ldapvi
- slapd
service.running:
- name: slapd
- require:
- pkg: ldapserver-packages
- debconf: slapd