Fix cookbook to create template attributes at run time