File: newfeatures

package info (click to toggle)
crmsh 5.0.0-2
  • 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 (38 lines) | stat: -rw-r--r-- 1,112 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
session New features
configure
# erase to start from scratch
erase
erase nodes
property stonith-enabled=false
node node1
primitive p0 Dummy params $p0-state:state=1
primitive p1 Dummy params \
    rule role=Started date in start=2009-05-26 end=2010-05-26 or date gt 2014-01-01 \
    state=2
primitive p2 Dummy params @p0-state
tag tag1: p0 p1 p2
tag tag2 p0 p1 p2
location l1 { p0 p1 p2 } inf: node1
primitive node1 Dummy
tag ones l1 p1
alert notify_9 /usr/share/pacemaker/alerts/alert_snmp.sh \
        attributes \
        trap_add_hires_timestamp_oid="false" \
        trap_node_states="non-trap" \
        trap_resource_tasks="start,stop,monitor,promote,demote" \
        to "192.168.40.9"
alert notify_10 /usr/share/pacemaker/alerts/alert_snmp.sh \
        attributes \
        trap_add_hires_timestamp_oid="false" \
        select attributes { master-prmStateful test1 } \
        to 192.168.28.188
alert notify_11 /usr/share/pacemaker/alerts/alert_snmp.sh \
        select fencing nodes resources \
        to 192.168.28.188
show tag:ones and type:location
show tag:ones and p1
show
_test
verify
commit
.