Vagrant: slapd must be running, add provision hint to docs

For some reason the initial ldap provisioning might fail even
after ensuring that slapd is running. Yet another `vagrant provision`
will fix the issue.

refs #9453
This commit is contained in:
Michael Friedrich 2015-07-24 14:33:06 +02:00
parent e06281a427
commit f0fc8b8e90
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class openldap {
exec { "slapd-schema-${schema}":
command => "ldapadd -Y EXTERNAL -H ldapi:// -f /etc/openldap/schema/${schema}.ldif",
group => 'root',
require => Package['openldap-servers'],
require => [ Package['openldap-servers'], Service['slapd'] ],
unless => "test -n \"$(find /etc/openldap/slapd.d/cn=config/cn=schema/ -name cn={*}${schema}.ldif -print -quit)\"",
user => 'root',
}

View File

@ -24,6 +24,8 @@ vagrant up
> you'll download a plain CentOS base box and Vagrant will automatically
> provision the environment on the first go.
If the LDAP schema import fails, rerun `vagrant provision`.
After you should be able to browse [localhost:8080/icingaweb2](http://localhost:8080/icingaweb2).
## Log into Icinga Web 2