Managing Kernels through Chef

Hi folks,

Is anybody dealing with Kernel management on Chef?

We need to remove the old kernels prior to update kernel on the nodes.

Thanks for any help,

Mohammad