Low: test-findif: make more POSIX shell friendly

Tested to work with bash, bash --posix, dash and ksh (@Fedora 17).

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Low: test-findif: make it work with findif.sh

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Low: test-findif: add --script to the usage string

Signed-off-by: Jan Pokorný <pokorny_jan@seznam.cz>
Low: test-findif: fix tests numbering

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Low: test-find: make it work properly, support IPv6, style...

Previously, the checks for values other than exit code were not
performed correctly.

The test now works exclusively with netmask form referred
to as CIDR (cidr_netmask).  Downside is that it is no longer
capable to exhibit wrong exit code of findif binary when
cidr_netmask is provided in IPv4-like notation but not in
a proper form (i.e., at least one dot is contained, but as
a whole, it is not a valid address), however this is
a deprecated usage and the issue was fixed anyway.

A very limited test set for IPv6 (targetting findif.sh)
was added.  Options such as --, -4, -6, -46 denotes
which built-in tests to use.  Additionally, one can add
ad-hoc tests definitions by piping them into the script
(for format see ./test-findif -h).

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Merge pull request #161 from jnpkrn/rgmanager-patches

Low: rgmanager: ip: fix comment typo
Merge pull request #162 from jnpkrn/rgmanager-patches

Low: rgmanager: ip: further cleanup
LVM agents:  Handle RAID logical volumes (by volume group).

This commit addresses rhbz824153.  Specifically, it enables the use
of RAID logical volumes in HA-LVM when using the "tagging" (i.e.
not "clvm") method.  Commit f8a488e3977a3104ac50628e709131b99f0c4bcf
handled only a single logical volume per service (i.e. "by LV"), this
patch finishes the job by handling all the LVs in a particular
volume group per service (i.e. "by VG").
Low: rgmanager: ensure agents are executable upon build

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Merge pull request #163 from jbrassow/master

rhbz824153:  Add "by VG" HA-LVM support for RAID logical volumes
Medium: IPaddr2: Add parameters to control IPv6 source address selection.

These parameters should be necessary to enable when LVS Direct Routing configurations.

Thanks to David Warden for reporting this issue.
related discussion: https://github.com/kskmori/resource-agents/pull/2
Medium: IPaddr2: fix lvs_support to work correctly.

Thanks to tobiasstein and Timur Bakeyev.
see https://github.com/ClusterLabs/resource-agents/issues/78
Merge pull request #154 from jnpkrn/test-findif

Low: test-findif: findif.sh+IPv6 support, portable, working...
Low: rgmanager: ensure agents are executable upon build

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Merge branch 'rgmanager-patches' of jnpkrn.github.com:jnpkrn/resource-agents into rgmanager-patches
Merge pull request #165 from jnpkrn/rgmanager-patches

Low: rgmanager: ensure agents are executable upon build
Merge pull request #158 from kskmori/IPaddr2-dualstack-lvs-support

IPaddr2: fixing LVS support issues for IPv4/IPv6
Low: pgsql: delete include directive if rep_mode is async

- delete include directive which is add by pgsql RA from
  postgresql.conf if rep_mode is async.
- improve meta-data
Merge pull request #167 from t-matsuo/drop-line-in-config-file

Low: pgsql: delete include directive if rep_mode is async
Low: pgsql: add restart_on_promote parameter

- Default is false.
- True means that RA deletes recovery.conf and restarts PostgreSQL
  on promote to keep Timeline ID.