Merge "Add how to configure vip resource with pcs command"

This commit is contained in:
Jenkins 2016-01-08 00:46:02 +00:00 committed by Gerrit Code Review
commit 6f366378ec
1 changed files with 13 additions and 5 deletions

View File

@ -6,11 +6,19 @@ Configure the VIP
You must select and assign a virtual IP address (VIP)
that can freely float between cluster nodes.
This configuration creates ``p_ip_api``,
This configuration creates ``vip``,
a virtual IP address for use by the API node (``192.168.42.103``):
::
For ``crmsh``:
primitive p_api-ip ocf:heartbeat:IPaddr2 \
params ip="192.168.42.103" cidr_netmask="24" \
op monitor interval="30s"
.. code-block:: console
primitive vip ocf:heartbeat:IPaddr2 \
params ip="192.168.42.103" cidr_netmask="24" op monitor interval="30s"
For ``pcs``:
.. code-block:: console
# pcs resource create vip ocf:heartbeat:IPaddr2 \
params ip="192.168.42.103" cidr_netmask="24" op monitor interval="30s"