converted template vars to cookbook attributes.