summaryrefslogtreecommitdiffstats
path: root/templates/virtual-ip
blob: c6ae46e1ca88f2182a84ccd200b1911d1dda3ed1 (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
%name virtual-ip

# Copyright (C) 2009 Dejan Muhamedagic
#
# License: GNU General Public License (GPL)

# Virtual IP address
#
# This template generates a single primitive resource of type IPaddr

%required

# Specify an IP address
# (for example: 192.168.1.101)
# Example:
# %% ip 192.168.1.101

%% ip 

%optional

# If your network has a mask different from its class mask, then
# specify it here either in CIDR format or as a dotted quad
# (for example: 24 or 255.255.255.0)
# Example:
# %% netmask 24

%% netmask 

# Need LVS support? Set this to true then.

%% lvs_support 

%generate

primitive %_ ocf:heartbeat:IPaddr
	params ip=%_:ip
	opt cidr_netmask=%_:netmask
	opt lvs_support=%_:lvs_support