I would recommend that you modify the cluster.conf manually.
You have to add a ressource script for your application. For example you could use the /etc/init.d scripts for that. However the return value is expected to be zero.
As an example I have added a simple configuration for httpd:
Code:
<?xml version="1.0"?>
<cluster config_version="8" name="atixcluster">
<cman expected_votes="1" two_node="1"/>
<fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="host1" votes="1" nodeid="1">
<fence>
<method name="1">
<device name="fence_manual" nodename="host1"/>
</method>
</fence>
</clusternode>
<clusternode name="host2" votes="1" nodeid="2">
<fence>
<method name="1">
<device name="fence_manual" nodename="host2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
<fencedevice agent="fence_manual" name="fence_manual"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="ALL" ordered="0" restricted="1">
<failoverdomainnode name="host1"
priority="1"/>
<failoverdomainnode name="host2"
priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="10.16.40.150" monitor_link="yes"/>
<script file="/etc/init.d/httpd" name="apache"/>
</resources>
<service name="web" autostart="1" domain="ALL">
<ip ref="10.16.40.150"/>
<script ref="apache"/>
</service>
</rm>
</cluster>