gvasalt/states/ldapserver/init.sls
Jan Dittberner 738107b523 Streamline base state extract vagrant specifics
- manage all wanted apt repositories
- move vagrant specific stuff to vagrant state
- use better password for slapd
2020-03-03 17:24:56 +01:00

18 lines
614 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["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