source: trunk/packages/invirt-cluster-config/cluster.conf.mako @ 2886

Last change on this file since 2886 was 2799, checked in by quentin, 15 years ago

Configure fence_manual fencing

File size: 657 bytes
RevLine 
[1520]1<%
2from invirt.config import structs as cfg
3%>\
4<?xml version="1.0"?>
[2799]5<cluster name="invirt" config_version="2">
[2023]6% if len(cfg.hosts) == 2:
7  <cman two_node="1" expected_votes="1" />
8% else:
[1520]9  <cman />
[2023]10% endif
[1520]11  <clusternodes>
12% for id, host in enumerate(cfg.hosts):
[2799]13    <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}">
14      <fence>
15        <method name="single">
16          <device name="human" nodename="${host.hostname.split('.')[0]}-internal"/>
17        </method>
18      </fence>
19    </clusternode>
[1520]20% endfor
21  </clusternodes>
[2799]22  <fencedevices>
23    <fencedevice name="human" agent="fence_manual"/>
24  </fencedevices>
25</cluster>
Note: See TracBrowser for help on using the repository browser.