updated hostname to fqdn in template.