Class | Chef::RunList::RunListExpansion |
In: |
lib/chef/run_list/run_list_expansion.rb
|
Parent: | Object |
Abstract Base class for expanding a run list. Subclasses must handle fetching roles from a data source by defining fetch_role
default_attrs | [R] | |
environment | [R] | |
missing_roles_with_including_role | [R] | |
override_attrs | [R] | |
recipes | [R] | A VersionedRecipeList of recipes. Populated only after expand is called. |
run_list_items | [R] | |
run_list_trace | [R] |
Returns a Hash of the form "including_role" =>
"included_role_or_recipe". This can be used to show the expanded
run list (ordered) graph.
Caveats
|
source | [R] | The data source passed to the constructor. Not used in this class. In subclasses, this is a couchdb or Chef::REST object pre-configured to fetch roles from their correct location. |
Recurses over the run list items, expanding roles. After this, recipes will contain the fully expanded recipe list
Fetches and inflates a role
Chef::Role in most cases false if the role has already been applied nil if the role does not exist
When a role is not found, an error message is logged, but no exception is raised. We do add an entry in the errors collection.
nil