Templatize host definition