'\" t .\" Title: ocf_heartbeat_slapd .\" Author: ClusterLabs contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 12/17/2020 .\" Manual: OCF resource agents .\" Source: resource-agents UNKNOWN .\" Language: English .\" .TH "OCF_HEARTBEAT_SLAPD" "7" "12/17/2020" "resource-agents UNKNOWN" "OCF resource agents" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ocf_heartbeat_slapd \- Manages a Stand\-alone LDAP Daemon (slapd) instance .SH "SYNOPSIS" .HP \w'\fBslapd\fR\ 'u \fBslapd\fR [start | stop | monitor | meta\-data | validate\-all] .SH "DESCRIPTION" .PP Resource script for Stand\-alone LDAP Daemon (slapd)\&. It manages a slapd instance as an OCF resource\&. .SH "SUPPORTED PARAMETERS" .PP \fBslapd\fR .RS 4 Full path to the slapd binary\&. For example, "/usr/sbin/slapd"\&. .sp (optional, string, default "/usr/sbin/slapd") .RE .PP \fBldapsearch\fR .RS 4 Full path to the ldapsearch binary\&. For example, "/usr/bin/ldapsearch"\&. .sp (optional, string, default "ldapsearch") .RE .PP \fBconfig\fR .RS 4 Full path to a slapd configuration directory or a slapd configuration file\&. For example, "/etc/ldap/slapd\&.d" or "/etc/ldap/slapd\&.conf"\&. .sp (unique, optional, string, no default) .RE .PP \fBpidfile\fR .RS 4 File to read the PID from; read from olcPidFile/pidfile in config if not set\&. .sp (optional, string, no default) .RE .PP \fBuser\fR .RS 4 User name or id slapd will run with\&. The group id is also changed to this user\*(Aqs gid, unless the group parameter is used to override\&. .sp (optional, string, no default) .RE .PP \fBgroup\fR .RS 4 Group name or id slapd will run with\&. .sp (optional, string, no default) .RE .PP \fBservices\fR .RS 4 LDAP (and other scheme) URLs slapd will serve\&. For example, "ldap://127\&.0\&.0\&.1:389 ldaps:/// ldapi:///" .sp (unique, optional, string, default "ldap:///") .RE .PP \fBwatch_suffix\fR .RS 4 Suffix (database backend) that will be monitored for availability\&. Multiple suffixes can be specified by providing a space separated list\&. By providing one or more suffixes here, the ignore_suffix parameter is discarded\&. All suffixes will be monitored if left blank\&. .sp (optional, string, no default) .RE .PP \fBignore_suffix\fR .RS 4 Suffix (database backend) that will not be monitored for availability\&. Multiple suffixes can be specified by providing a space separated list\&. No suffix will be excluded if left blank\&. .sp (optional, string, no default) .RE .PP \fBbind_dn\fR .RS 4 Distinguished Name used to bind to the LDAP directory for testing\&. Leave blank to bind to the LDAP directory anonymously\&. .sp (optional, string, no default) .RE .PP \fBpassword\fR .RS 4 Password used to bind to the LDAP directory for testing\&. .sp (optional, string, no default) .RE .PP \fBparameters\fR .RS 4 slapd may be called with additional parameters\&. Specify any of them here\&. .sp (optional, string, no default) .RE .PP \fBstop_escalate\fR .RS 4 Number of seconds to wait for shutdown (using SIGTERM) before resorting to SIGKILL .sp (optional, integer, default 15) .RE .PP \fBmaxfiles\fR .RS 4 Maximum number of open files (for ulimit \-n) .sp (optional, string, no default) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 20s\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 20s\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 20s\&. Suggested interval: 60s\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 20s\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5s\&. .RE .SH "EXAMPLE CRM SHELL" .PP The following is an example configuration for a slapd resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_slapd ocf:heartbeat:slapd \e op monitor depth="0" timeout="20s" interval="60s" .fi .if n \{\ .RE .\} .SH "EXAMPLE PCS" .PP The following is an example configuration for a slapd resource using \fBpcs\fR(8) .sp .if n \{\ .RS 4 .\} .nf pcs resource create p_slapd ocf:heartbeat:slapd \e op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s" .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://clusterlabs.org/\fR\m[] .SH "AUTHOR" .PP \fBClusterLabs contributors (see the resource agent source for information about individual authors)\fR