user3150146
user3150146

Reputation: 1

Use Ohai data from Chef Server and not Chef Client

I know Ohai pulls data from the node on which Chef client is installed and running. It communicates this data to the Chef client. However, is there a way to pass this data back to the Chef Server? If so - how?

An old co-worker of mine had mentioned it was possible to use Ohai to send node attributes to the Chef server and then query the Chef server (assuming with knife node show <FQDN> -l) for those node attributes in a JSON format. That JSON could then be used via an API to populate fields in a database.

Thanks for any help.

Upvotes: 0

Views: 448

Answers (0)

Related Questions