blob: 22ab5bfce56c3c8a4f1979ba567bc2681eea08de (
plain)
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
|
<?xml version="1.0"?>
<template name="virtual-ip">
<shortdesc lang="en">Virtual IP Address</shortdesc>
<longdesc lang="en">
Create a single primitive resource of type IPaddr2.
</longdesc>
<parameters>
<parameter name="id" required="1">
<shortdesc lang="en">Resource ID</shortdesc>
<longdesc lang="en">
Unique ID for this virtual IP address resource in the cluster.
</longdesc>
<content type="string" default="virtual-ip"/>
</parameter>
<parameter name="ip" required="1">
<shortdesc lang="en">IP address</shortdesc>
<longdesc lang="en">
The IPv4 address to be configured in dotted quad notation,
for example "192.168.1.1".
</longdesc>
<content type="string" default=""/>
</parameter>
<parameter name="netmask">
<shortdesc lang="en">Netmask</shortdesc>
<longdesc lang="en">
The netmask for the interface in CIDR format
(e.g., 24 and not 255.255.255.0).
If unspecified, it will be determined automatically.
</longdesc>
<content type="string"/>
</parameter>
<parameter name="lvs_support">
<shortdesc lang="en">LVS support</shortdesc>
<longdesc lang="en">
Enable support for LVS Direct Routing configurations. In case a IP
address is stopped, only move it to the loopback device to allow the
local node to continue to service requests, but no longer advertise it
on the network.
</longdesc>
<content type="boolean"/>
</parameter>
</parameters>
<crm_script>
primitive <insert param="id"/> ocf:heartbeat:IPaddr2
params
ip="<insert param="ip"/>"
<if set="netmask">cidr_netmask="<insert param="netmask"/>"</if>
<if set="lvs_support">lvs_support="<insert param="lvs_support"/>"</if>
op start timeout="20" op stop timeout="20"
op monitor interval="10" timeout="20"
</crm_script>
</template>
|