Switch to template based management of /etc/hosts