changed template to templateId as it's a puppet reserved word