from invirt.config import structs as cfg
%>\
<?xml version="1.0"?>
-<cluster name="invirt" config_version="1">
+<cluster name="invirt" config_version="2">
% if len(cfg.hosts) == 2:
<cman two_node="1" expected_votes="1" />
% else:
% endif
<clusternodes>
% for id, host in enumerate(cfg.hosts):
- <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}" />
+ <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}">
+ <fence>
+ <method name="single">
+ <device name="human" nodename="${host.hostname.split('.')[0]}-internal"/>
+ </method>
+ </fence>
+ </clusternode>
% endfor
</clusternodes>
-</cluster>
\ No newline at end of file
+ <fencedevices>
+ <fencedevice name="human" agent="fence_manual"/>
+ </fencedevices>
+</cluster>