<%
from invirt.config import structs as cfg
%>\
<?xml version="1.0"?>
<cluster name="invirt" config_version="1">
  <cman />
  <clusternodes>
% for id, host in enumerate(cfg.hosts):
    <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}" />
% endfor
  </clusternodes>
</cluster>