%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
