We’re talking in OHAI-542  about changes to the cloud plugin that
would make it better but wouldn’t be backward compatible and one
option is to overload the attribute names with versions. We’ve had
issues with the network plugin in the past (OHAI-88 ) that lead to
similar questions, so it’s a bigger problem.
The top level namespace on nodes is pretty unlimited. But attributes
from ohai have “automatic” precedence (Ohai v7  makes big
improvements here) so we want to be thoughtful.
Overloading attribute names with major version:
It seems like not overthinking it and adding only an integer to a
plugin is the easiest, e.g. the network2 plugin would provide
node[:network2][:blah_blah]. Since this should only happen on major
breaking rewrites, we don’t need to implement full semver versioning
in the attributes.
There’s an alternative idea floating around in my head that would
involve shipping both a cloud and cloud2 plugin, perhaps using
Chef::Config options to pick one until we replace the other on a major
release. But that still requires ripping off a bandaid eventually.
Also, I can’t get over feeling like Chef::Config using client.rb is
way off the beaten path, but it’s the only established method we have.
Any other ideas?
Bryan McLellan | chef | software engineer
© 206.607.7108 | (t) @btmspox | (www) http://getchef.com