Browse Source

Icinga2: Add simple LDAP availability check.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
16fb0278af
1 changed files with 16 additions and 0 deletions
  1. 16 0
      icinga2/services/ldap.conf

+ 16 - 0
icinga2/services/ldap.conf

@@ -0,0 +1,16 @@
+#
+# LDAP related stuff (Salt managed)
+#
+
+apply Service "ldaps" {
+        import "generic-service"
+
+	check_command = "ldap"
+
+	vars.ldap_address = host.name
+	vars.ldap_base = "dc=ffho,dc=net"
+	vars.ldap_ssl = true
+	vars.ldap_v3 = true
+
+	assign where host.address && "ldap" in host.vars.roles
+}