[%
    FOREACH host IN hosts;
        SET host.fqdn = host.ip UNLESS host.fqdn.defined;
        host.fqdn %]
[%  END -%]
