logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ocf_pacemaker_Dummy - Example stateless resource agent

Author

AndrewBeekhof <andrew@beekhof.net>
           Author.

Pacemaker Configuration                            06/16/2025                             OCF_PACEMAKER_DUMMY(7)

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.

Name

       ocf_pacemaker_Dummy - Example stateless resource agent

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.

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]

See Also