python - PyChef - Is there REST API to get chef-client runs -


i trying pull chef-client runs details. using pychef , able information on list of nodes connected chef server , corresponding run_list. there option in pychef information on client runs (start time, end time, status of run, etc)

used following code:

import chef  chef.chefapi('chef_master url', '#perm_file#', 'user_name',ssl_verify=false):          node in chef.node.list():         node = chef.node(node)         print node.list         print node.run_list 

by default chef server not save information. part of older chef reporting commercial addon , newer chef automate system. i've never used either, there no direct api support in pychef can use raw api object make simple requests yourself. example, looking @ https://docs.chef.io/api_reporting.html#reports-nodes-node-runs use api['/reports/nodes/foo.example.com/runs'] list of run ids node.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -