gvasalt/states/ldapserver/init.sls

19 lines
614 B
Text
Raw Normal View History

ldapserver-packages:
debconf.set:
- name: slapd
- data:
2016-09-24 21:51:59 +02:00
'slapd/domain': {'type': 'string', 'value': '{{ salt["pillar.get"]("gnuviechadmin:ldap_domain") }}'}
'slapd/password1': {'type': 'string', 'value': '{{ salt["grains.get_or_set_hash"]("slapd:password", 16) }}'}
'slapd/password2': {'type': 'string', 'value': '{{ salt["grains.get_or_set_hash"]("slapd:password", 16) }}'}
pkg.installed:
- pkgs:
- ldap-utils
- ldapscripts
- ldapvi
- slapd
service.running:
- name: slapd
- require:
- pkg: ldapserver-packages
- debconf: slapd