Add cookbook attribute to template resources