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 <gryz...@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@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

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to