From f0fc8b8e901ab741071ca5c15cdae6f287bbff50 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 24 Jul 2015 14:33:06 +0200 Subject: [PATCH] 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 --- .puppet/modules/openldap/manifests/init.pp | 2 +- doc/vagrant.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.puppet/modules/openldap/manifests/init.pp b/.puppet/modules/openldap/manifests/init.pp index 11cc2b42a..62b9d1e34 100644 --- a/.puppet/modules/openldap/manifests/init.pp +++ b/.puppet/modules/openldap/manifests/init.pp @@ -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', } diff --git a/doc/vagrant.md b/doc/vagrant.md index b1b98b436..148e6aeb8 100644 --- a/doc/vagrant.md +++ b/doc/vagrant.md @@ -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