Uses get_fqn and get_hostname in repl_tpl.