Export HOSTNAME and use it in template