ocf_heartbeat_slapd (7) - Linux Manuals
ocf_heartbeat_slapd: Manages a Stand-alone LDAP Daemon (slapd) instance
NAME
ocf_heartbeat_slapd - Manages a Stand-alone LDAP Daemon (slapd) instance
SYNOPSIS
- slapd [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
SUPPORTED PARAMETERS
slapd
-
Full path to the slapd binary. For example, "/usr/sbin/slapd".
(optional, string, default "/usr/sbin/slapd")
ldapsearch
-
Full path to the ldapsearch binary. For example, "/usr/bin/ldapsearch".
(optional, string, default "ldapsearch")
config
-
Full path to a slapd configuration directory or a slapd configuration file. For example, "/etc/ldap/slapd.d" or "/etc/ldap/slapd.conf".
(unique, optional, string, no default)
pidfile
-
File to read the PID from; read from olcPidFile/pidfile in config if not set.
(optional, string, no default)
user
-
User name or id slapd will run with. The group id is also changed to this user's gid, unless the group parameter is used to override.
(optional, string, no default)
group
-
Group name or id slapd will run with.
(optional, string, no default)
services
-
LDAP (and other scheme) URLs slapd will serve. For example, "ldap://127.0.0.1:389 ldaps:/// ldapi:///"
(unique, optional, string, default "ldap:///")
watch_suffix
-
Suffix (database backend) that will be monitored for availability. Multiple suffixes can be specified by providing a space seperated list. By providing one or more suffixes here, the ignore_suffix parameter is discarded. All suffixes will be monitored if left blank.
(optional, string, no default)
ignore_suffix
-
Suffix (database backend) that will not be monitored for availability. Multiple suffixes can be specified by providing a space seperated list. No suffix will be excluded if left blank.
(optional, string, no default)
bind_dn
-
Distinguished Name used to bind to the LDAP directory for testing. Leave blank to bind to the LDAP directory anonymously.
(optional, string, no default)
password
-
Password used to bind to the LDAP directory for testing.
(optional, string, no default)
parameters
-
slapd may be called with additional parameters. Specify any of them here.
(optional, string, no default)
stop_escalate
-
Number of seconds to wait for shutdown (using SIGTERM) before resorting to SIGKILL
(optional, integer, default 15)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
- Starts the resource. Suggested minimum timeout: 20s.
stop
- Stops the resource. Suggested minimum timeout: 20s.
monitor
- Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
validate-all
- Performs a validation of the resource configuration. Suggested minimum timeout: 20s.
meta-data
- Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
EXAMPLE CRM SHELL
The following is an example configuration for a slapd resource using the crm(8) shell:
-
primitive p_slapd ocf:heartbeat:slapd \ op monitor depth="0" timeout="20s" interval="60s"
EXAMPLE PCS
The following is an example configuration for a slapd resource using pcs(8)
-
pcs resource create p_slapd ocf:heartbeat:slapd \ op monitor depth="0" timeout="20s" interval="60s"
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
SEE ALSO
m[blue]http://www.linux-ha.org/wiki/slapd_(resource_agent)m[]