<configuration>
        <crm_config>
                <cluster_property_set id="cib-bootstrap-options">
                        <attributes>
                                <nvpair name="stonith-enabled" value="true" id="stonith-enabled"/>
                                <nvpair name="stonith-action" value="reboot" id="stonith-action"/>
                        </attributes>
                </cluster_property_set>
        </crm_config>

        <resources>
                <primitive id="ha-01-fencing" class="stonith" type="external/vsphere" provider="heartbeat">
                        <operations>
                                <op id="ha-01-fencing-monitor" name="monitor" interval="60s" timeout="20s" prereq="nothing"/>
                                <op id="ha-01-fencing-start" name="start" timeout="20s" prereq="nothing"/>
                        </operations>

                        <instance_attributes id="ia-ha-01-fencing">
                                <attributes>
                                        <nvpair id="ha-01-fencing-hostname" name="vm" value="ha-01"/>
                                        <nvpair id="ha-01-fencing-ipaddr" name="VI_SERVER" value="192.168.0.60"/>
                                        <nvpair id="ha-01-fencing-userid" name="VI_USERNAME" value="root"/>
                                        <nvpair id="ha-01-fencing-passwd" name="VI_PASSWORD" value="password"/>
                                </attributes>
                        </instance_attributes>
                </primitive>

                <primitive id="ha-02-fencing" class="stonith" type="external/vsphere" provider="heartbeat">
                        <operations>
                                <op id="ha-02-fencing-monitor" name="monitor" interval="60s" timeout="20s" prereq="nothing"/>
                                <op id="ha-02-fencing-start" name="start" timeout="20s" prereq="nothing"/>
                        </operations>

                        <instance_attributes id="ia-ha-02-fencing">
                                <attributes>
                                        <nvpair id="ha-02-fencing-hostname" name="vm" value="ha-02"/>
                                        <nvpair id="ha-02-fencing-ipaddr" name="VI_SERVER" value="192.168.0.60"/>
                                        <nvpair id="ha-02-fencing-userid" name="VI_USERNAME" value="root"/>
                                        <nvpair id="ha-02-fencing-passwd" name="VI_PASSWORD" value="password"/>
                                </attributes>
                        </instance_attributes>
                </primitive>

                <group id="squid-cluster">
                        <primitive class="ocf" provider="heartbeat" type="IPaddr2" id="ip0">
                                <instance_attributes id="ia-ip0">
                                        <attributes>
                                                <nvpair id="ia-ip0-1" name="ip" value="192.168.0.43"/>
                                                <nvpair id="ia-ip0-2" name="cidr_netmask" value="24"/>
                                                <nvpair id="ia-ip0-3" name="nic" value="eth0"/>
                                        </attributes>
                                </instance_attributes>
                                <operations>
                                        <op id="ip0-monitor0" name="monitor" interval="60s" timeout="120s" start_delay="1m"/>
                                </operations>
                        </primitive>

                        <primitive class="ocf" provider="heartbeat" type="squid" id="squid0">
                                <operations>
                                        <op id="squid0-monitor0" name="monitor" interval="60s" timeout="120s" start_delay="1m"/>
                                        <op id="squid0-start0" name="start" timeout="120s" />
                                        <op id="squid0-stop0" name="stop" timeout="120s" />
                                </operations>
                        </primitive>
                </group>
        </resources>
</configuration>
