Facter is common in the puppet universe, ohai (ruby gem) by Chef does almost the same for the chef ecosphere.
Given that ohai by default outputs JSON, it would be nice to be able switch factor for ohai if someone is a chef-shop and has already installed it by default.
A simple way to get ohai on your system (macOS) is installing chef-dk (cask will be installed to /opt/chefdk)
brew cask install chefdk
Actually, It might work out of the box using custom configuration if the parameters for facter were configurable, e.g. no hard coded --json. Ohai users may have a custom options as well.
Facter is common in the puppet universe, ohai (ruby gem) by Chef does almost the same for the chef ecosphere.
Given that ohai by default outputs JSON, it would be nice to be able switch factor for ohai if someone is a chef-shop and has already installed it by default.
A simple way to get ohai on your system (macOS) is installing chef-dk (cask will be installed to
/opt/chefdk
)Actually, It might work out of the box using custom configuration if the parameters for facter were configurable, e.g. no hard coded
--json
. Ohai users may have a custom options as well.