<div dir="ltr">Sounds like there isn't anything built in to the product. <div style>Great space for improvement there. Even if this was just between resource agents themselves - some form of information exchange would be nice. </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 August 2013 02:50, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You could potentially use:<br>
crm_resource --get-parameter --resource $ANOTHER_RESOURCE<br>
and cycle through the list of Postgres children (filtering out those running as Master or Stopped)<br>
<div><div class="h5"><br>
On 26/08/2013, at 6:00 PM, Gregg Jaskiewicz <<a href="mailto:gryzman@gmail.com">gryzman@gmail.com</a>> wrote:<br>
<br>
> Hi Guys,<br>
><br>
> I need to write an resource agent for our little service here.<br>
> The service will only run on the same node as PostgreSQL master.<br>
> However, the service needs to know eth0 IPs of every 'slave' postgresql node.<br>
><br>
> Each node's host name represents its eth1 IP.<br>
><br>
> What's the best way to accomplish that ?<br>
><br>
> Thanks in advance.<br>
><br>
> --<br>
> GJ<br>
</div></div>> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>GJ
</div>