I’m trying to modify the platform.rb module of the Ohai Solaris2
plugin in order to extend it to detect the various distributions of
Solaris (Solaris/Solaris Express, OpenIndiana, Nexenta, etc.).
However, if I modify the file:
…my changes don’t seem to take effect. I’ve even tried adding:
However the platform still indicates “solaris2” when I run Ohai. This
appears to be from the line:
platform os unless attribute?(“platform”)
because attribute?(“platform”) is evaluating to false. It appears that
Ohai isn’t running platform.rb in the solaris2 plugin at all. Any
pointers are greatly appreciated.