[Pacemaker] Information about other nodes in Resource Agent.

Andrew Beekhof andrew at beekhof.net
Mon Aug 26 21:50:11 EDT 2013


You could potentially use:
   crm_resource --get-parameter --resource $ANOTHER_RESOURCE
and cycle through the list of Postgres children (filtering out those running as Master or Stopped)

On 26/08/2013, at 6:00 PM, Gregg Jaskiewicz <gryzman at gmail.com> wrote:

> Hi Guys, 
> 
> I need to write an resource agent for our little service here. 
> The service will only run on the same node as PostgreSQL master. 
> However, the service needs to know eth0 IPs of every 'slave' postgresql node. 
> 
> Each node's host name represents its eth1 IP. 
> 
> What's the best way to accomplish that ? 
> 
> Thanks in advance.
> 
> -- 
> GJ
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130827/9766e9f2/attachment-0003.sig>


More information about the Pacemaker mailing list