File: ra.exp

package info (click to toggle)
crmsh 5.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,980 kB
  • sloc: python: 50,399; sh: 1,207; makefile: 255; xml: 243; exp: 234; awk: 22
file content (48 lines) | stat: -rw-r--r-- 1,751 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.TRY RA interface
.INP: ra
.INP: providers IPaddr2

heartbeat
.INP: providers Dummy
heartbeat pacemaker
.INP: info ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
ocf:pacemaker:Dummy - Example stateless resource agent

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.

## Parameters (*: required, []: default):

envfile (string): Environment dump file
    If this is set, the environment will be dumped to this file for every call.

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.

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

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.

passwd (string): Password
    Fake password field

state (string, [state-file]): State file
    Location to store the resource state in.

## Operations' defaults (advisory minimum):

    start         timeout=20s
    stop          timeout=20s
    monitor       timeout=20s interval=10s depth=0
    reload        timeout=20s
    reload-agent  timeout=20s
    migrate_to    timeout=20s
    migrate_from  timeout=20s