ohai

ohai

Use the ohai resource to reload the Ohai configuration on a node. This allows recipes that change system attributes (like a recipe that adds a user) to refer to those attributes later on during the chef-client run.

Syntax

A ohai resource block reloads the Ohai configuration on a node:

ohai 'reload' do
  action :reload
end

The full syntax for all of the properties that are available to the ohai resource is:

ohai 'name' do
  name                       String
  notifies                   # see description
  plugin                     String
  provider                   Chef::Provider::Ohai
  subscribes                 # see description
  action                     Symbol # defaults to :reload if not specified
end

where