Sounds like you just need to make the solaris platform plugin a little smarter? If SmartOS and SNGL are functionally different, they should be reported as different platforms. It's up to Joyent to provide a sane way to detect this, and then you can patch the plugin to handle that case.
Wrestling with these problems, it occurred to us that there are broader implications to the way that ohai reports platform information. For example:- It's hard to tell from ohai-generated attributes if you are on a custom-built AWS AMI that might need different Chef behavior than the 'stock' OS you baselined from- Users of other 'container' technologies (jails/lxc) will likely need to identify container 'flavor'- Anyone who prefers a package manager that's not the default for their system will have to monkeypatch ohai or hard-code attributesDoes ohai's virtualization detection cover these cases? If not, can it be made to do so?
As for non-default package managers, this is more of a Chef issue than an ohai issue, though there is some overlap. But if ohai can detect SNGL as distinct from SmartOS, then you just need to add the right entries in the platform selection code that exists now and everything should be fine.
Archive powered by MHonArc 2.6.16.