2 from invirt.config import structs as cfg
5 <cluster name="invirt" config_version="2">
6 % if len(cfg.hosts) == 2:
7 <cman two_node="1" expected_votes="1" />
12 % for id, host in enumerate(cfg.hosts):
13 <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}">
15 <method name="single">
16 <device name="human" nodename="${host.hostname.split('.')[0]}-internal"/>
23 <fencedevice name="human" agent="fence_manual"/>