jarpy / factbeat

Ship Facter facts to Elasticsearch or Logstash.
Other
13 stars 1 forks source link

Feature: support ohai as alternative to facter #4

Open rmoriz opened 7 years ago

rmoriz commented 7 years ago

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.

jarpy commented 7 years ago

Great idea.

The dirty secret of Factbeat is that it's really RunSomethingAndIndexTheJSONOutputBeat.