allow environment variables in template and also a HOSTNAME