craigwatson/puppet-vmwaretools — pull request #14 by mckern (2013-06-19 04:08:28+00:00)
Title: Enhance 'kernel_upgrade' across supported OSes

kernel_upgrade currently searches for the driver "/lib/modules/${::kernelrelease}/kernel/drivers/scsi/vmw_pvscsi.ko", which isn't reliable on RHEL/CentOS 5. I've added some conditional logic to search for vmxnet3.ko instead, which appears to be universally installed regardless of distro (albeit in different locations across the different versions of RHEL/CentOS).

This has been tested across the CentOS flavors mentioned but it probably needs at least a little bit more tire kicking on Ubuntu. I didn't have any clients handy tonight, so please merge with a grain of salt.