<clusternodes>
% for id, host in enumerate(cfg.hosts):
<clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}" />
<clusternodes>
% for id, host in enumerate(cfg.hosts):
<clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}" />