---
name: "ocf_pacemaker_Dummy"
section: "7"
platform: "linux"
package: "pacemaker-resource-agents"
version: "3.0.0-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_pacemaker_Dummy"
---

# ocf\_pacemaker\_Dummy(7)

Example stateless resource agent

## NAME

ocf\_pacemaker\_Dummy - Example stateless resource agent

## SYNOPSIS

\[**OCF\_RESKEY\_state**=string\] \[**OCF\_RESKEY\_passwd**=string\] \[**OCF\_RESKEY\_fake**=string\] \[**OCF\_RESKEY\_op\_sleep**=string\] \[**OCF\_RESKEY\_fail\_start\_on**=string\] \[**OCF\_RESKEY\_envfile**=string\]

**Dummy** \[start \| stop \| monitor \| reload \| reload-agent \| migrate\_to \| migrate\_from \| validate-all \| meta-data\]

## DESCRIPTION

This is a dummy OCF resource agent. It does absolutely nothing except keep track of whether it is running or not, and can be configured so that actions fail or take a long time. Its purpose is primarily for testing, and to serve as a template for resource agent writers.

## SUPPORTED PARAMETERS

**OCF\_RESKEY\_state** = string \[/Dummy-.state\]

State file

Location to store the resource state in.

**OCF\_RESKEY\_passwd** = string \[\]

Password

Fake password field

**OCF\_RESKEY\_fake** = string \[dummy\]

Fake attribute that can be changed to cause an agent reload

Fake attribute that can be changed to cause an agent reload

**OCF\_RESKEY\_op\_sleep** = string \[0\]

Operation sleep duration in seconds.

Number of seconds to sleep during operations. This can be used to test how the cluster reacts to operation timeouts.

**OCF\_RESKEY\_fail\_start\_on** = string \[\]

Report bogus start failure on specified host

Start, migrate\_from, and reload-agent actions will return failure if running on the host specified here, but the resource will run successfully anyway (future monitor calls will find it running). This can be used to test on-fail=ignore.

**OCF\_RESKEY\_envfile** = string \[\]

Environment dump file

If this is set, the environment will be dumped to this file for every call.

## AUTHOR

**Andrew Beekhof** \<andrew@beekhof.net\>

Author.
