gvasalt/states/ldapserver/init.sls
Jan Dittberner 3fd146215f Rename roots to states
This commit renames the roots directory to states because it contains
salt states.
2016-01-31 21:16:14 +01:00

18 lines
607 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") }}'}
'slapd/password2': {'type': 'string', 'value': '{{ salt["grains.get_or_set_hash"]("slapd.password") }}'}
pkg.installed:
- pkgs:
- ldap-utils
- ldapscripts
- ldapvi
- slapd
service.running:
- name: slapd
- require:
- pkg: ldapserver-packages
- debconf: slapd