given the changes with each major chef release, would it make sense to add a metadata to cookbooks to define/limited the supported chef versions?
Let’s say you have a cookbook that provides audit mode recipes, or using„sensitive“ attribute for file resources, or the recently introduced reboot resource. To some degree it’s okay to check each supported feature at run time and react accordingly, however some people are using really, really, really old setups nobody want’s to support anymore. E.g. 0.9.x and chef 10.
As a cookbook author I would prefer a explicitly exiting chef-client or "knife upload“ run, instead of some „silent working“ condition.
What do you think?
PS: One could argue if the same also applies to „ohai“.