razorsedge/puppet-vmwaretools — pull request #17 by salderma (2013-09-23 16:15:25+00:00)
Title: Wrapper to gracefully avoid unsupported OS's

Hi,
I have attempted to add a suitable means for avoiding unsupported platforms, but allowing the module to be applied in a do-nothing state instead of failing the puppet run. My case is that I have many VMs which run puppet, do not run a supported OS, and belong in a host group in my ENC which applies you module.

I have added a supported boolean to params.pp and changed the instances of using the Fail function to using notify with the unsupported message. Inside your case logic for virtual = vmware, I have put an if $supported { ... } wrapper.

I hope you find this method to your liking, if not I would appreciate your suggestions and will gladly modify my implementation accordingly.