File: cib-example-1.xml

package info (click to toggle)
pacemaker 2.0.1-5%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 55,644 kB
  • sloc: xml: 130,752; ansic: 96,958; python: 5,692; sh: 4,852; makefile: 1,082
file content (106 lines) | stat: -rw-r--r-- 3,690 bytes parent folder | download | duplicates (5)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0"?>
<!DOCTYPE cib SYSTEM "crm-1.0.dtd">
<!-- A CIB configuration example. No status section, just a config -->

<cib version="1.0" timestamp="1080033905.000">
<configuration version="1.0" source="lmb" serial="1" timestamp="1080033905.000">
<!-- ============================================================== -->
<nodes>
<node id="n001" uname="chip" description="4-way DL580 4G" type="member">
	<attributes>
	<nvpair id="nv001" name="san-msa1000" value="yes" />
	<nvpair id="nv002" name="arch" value="IA32" />
	</attributes>
</node>
<node id="n002" uname="dale" description="4-way DL580 4G" type="member">
	<attributes>
	<nvpair id="nv003" name="san-msa1000" value="yes" />
	<nvpair id="nv004" name="arch" value="IA32" />
	</attributes>
</node>
<node id="n003" uname="hastur" description="4-way AMD64 4G" type="member">
	<attributes>
	<nvpair id="nv005" name="san-msa1000" value="no" />
	<nvpair id="nv006" name="arch" value="AMD64" />
	</attributes>
</node>
<node id="n004" uname="cthluh" description="4-way AMD64 4G" type="member">
	<attributes>
	<nvpair id="nv007" name="san-msa1000" value="no" />
	<nvpair id="nv008" name="arch" value="AMD64" />
	</attributes>
</node>
</nodes>
<!-- ============================================================== -->
<resources>
<resource id="http-fs-1" class="ocf" ra_version="1.0" priority="0" type="Filesystem">
<instance_attributes id="fs-459858">
<parameters>
<nvpair id="nv009" name="Device" value="/dev/sdd4" />
<nvpair id="nv010" name="Mountpoint" value="/mnt/ha-www" />
<nvpair id="nv011" name="FSType" value="reiserfs" />
<nvpair id="nv012" name="mount_options" value="defaults" />
</parameters>
<timings>
<timing id="t01" action="monitor" frequency="60" />
</timings>
</instance_attributes>
</resource>

<resource id="http-ip-1" class="ocf" ra_version="1.0" priority="0" type="IPaddr">
<instance_attributes id="ip-459558">
<parameters>
<nvpair id="nv013" name="ip" value="192.168.1.100" />
<nvpair id="nv014" name="device" value="auto" />
<nvpair id="nv015" name="netmask" value="255.255.255.0" />
<nvpair id="nv016" name="broadcast" value="192.168.1.255" />
</parameters>
<timings>
<timing id="t02" action="monitor" frequency="60" />
</timings>
</instance_attributes>
</resource>

<resource id="http-1" class="init" priority="100" type="httpd">
<instance_attributes id="ip-39494">
<timings>
<!-- Lets assume for some strange reason that the Apache takes ages to
	start and stop... -->
<timing id="t03" action="start" timeout="360" />
<timing id="t04" action="stop" timeout="180" />
</timings>
</instance_attributes>
</resource>

</resources>
<!-- ============================================================== -->
<constraints>
<rsc_to_rsc id="c001" from="http-1" to="http-ip-1" type="ordering"
	timestamp="1080160346.000" strength="must" />
<rsc_to_rsc id="c002" from="http-1" to="http-ip-1" type="placement"
	timestamp="1080160346.000" strength="must" />
<rsc_to_rsc id="c003" from="http-1" to="http-fs-1" type="ordering"
	timestamp="1080160346.000" strength="must" />
<rsc_to_rsc id="c004" from="http-1" to="http-fs-1" type="placement"
	timestamp="1080160346.000" strength="must" />

<rsc_to_node id="c005" timestamp="1080160346.000" rsc="http-fs-1"
	weight="100">
<node_ref id="nr001">
<node_match id="nm001" type="has_attr" target="san-msa1000" />
</node_ref>
</rsc_to_node>

<node_baseweight id="c006" timestamp="1080160346.000" weight="-1"
	modifier="set">
<node_ref id="nr002">
<node_match id="nm002" type="attr_value" target="AMD64" />
</node_ref>
</node_baseweight>
</constraints>

</configuration>
<!-- ============================================================== -->
<!-- No status section yet ;-) -->
</cib>