<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hi guys,<BR>
I'm having a hard time finding the info I need to configure pacemaker from an input file. I've been using Zookeeper a lot in our application tier, so I'm familiar with clusters, however I'm struggling to adapt that knowledge to the pacemaker configuration.<BR>
<BR>
<BR>
Here is an overview of our cluster.<BR>
<BR>
OS: Ubuntu 10.10 Server 64 bit<BR>
Environment: Amazon EC2<BR>
Pacemaker Stack: heartbeat using unicast and pacemaker from the Ubuntu package<BR>
1 Online node, 2 Standby nodes. All nodes are true peers, so there is no weight should be given to any nodes.<BR>
<BR>
<BR>
I have heartbeat up and running. This is the output from my crm_mon -1 command.<BR>
<BR>
<BR>
============<BR>
Last updated: Thu Jan 13 22:00:55 2011<BR>
Stack: Heartbeat<BR>
Current DC: ip-10-160-58-200 (79170a75-1b64-43c8-80a1-ff4f490149e5) - partition with quorum<BR>
Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd<BR>
3 Nodes configured, unknown expected votes<BR>
0 Resources configured.<BR>
============<BR>
<BR>
Online: [ ip-10-160-138-192 ip-10-160-233-27 ip-10-160-58-200 ]<BR>
<BR>
<BR>
<BR>
Now I need to perform the following.<BR>
<BR>
Only 1 node is running these services at a time, the other two do not have these services running. I need to check our public IP, which can be configured from chef.<BR>
<BR>
<BR>
On Start<BR>
start haproxy<BR>
start stunnel<BR>
execute custom script to switch our amazon ec2 ip to the node running<BR>
<BR>
on stop<BR>
stop haproxy<BR>
stop stunnel<BR>
<BR>
<BR>
<BR>
Another caveat. I've read the cluster_from_scratch several times. It uses the interactive command line to configure pacemaker. I need to create an xml file directly using my chef recipes. I have no ability to know each node's UUID, only the hostname. Can anyone provide me with an example of how I can configure pacemaker from an xml file to execute several scripts?<BR>
<BR>
<BR>
Thanks,<BR>
Todd<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>