When are environment default attributes available to nodes

If I bootstrap a node with a -E option, are the attributes in the default_attributes block available for cookbooks to use immediately, or are they only part of the node “after” as successful bootstrap?

Chris

They're available on the run, the node object is made from ohai, Env attributes, roles attributes and cookbooks files attributes just before compile time.

See http://docs.chef.io/chef_client.html#the-chef-client-title-run

For the chef run workshop

And here https://docs.chef.io/attributes.html#attribute-sources for the merge and precedence levels schema

Le 22 juin 2015 19:59, "Fouts, Chris" <Chris.Fouts@Sensus.com> a écrit :

If I bootstrap a node with a –E <environment> option, are the attributes in the default_attributes block available for cookbooks to use immediately, or are they only part of the node “after” as successful bootstrap?

Chris