Reputation: 773
How do I refer to the active run list at converge time?
I'm trying to write out the run list into a json attribute file for an AMI that I'm building with chef-client connected to a chef server. My chef-client version is 12.14.89.
Upvotes: 0
Views: 2138
Reputation: 54181
Depending on what you mean, probably node.run_list
, which is an instance of Chef::RunList
. node.run_list.to_json
will give you the run list formatted in JSON.
Upvotes: 1