<div dir="ltr">Sounds like there isn&#39;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">&lt;<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>&gt;</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 &lt;<a href="mailto:gryzman@gmail.com">gryzman@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Guys,<br>
&gt;<br>
&gt; I need to write an resource agent for our little service here.<br>
&gt; The service will only run on the same node as PostgreSQL master.<br>
&gt; However, the service needs to know eth0 IPs of every &#39;slave&#39; postgresql node.<br>
&gt;<br>
&gt; Each node&#39;s host name represents its eth1 IP.<br>
&gt;<br>
&gt; What&#39;s the best way to accomplish that ?<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; --<br>
&gt; GJ<br>
</div></div>&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; 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>
&gt; 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>