How to obtain node inventory for rundeck from chef

可紊 提交于 2019-12-13 07:25:48

问题


The workflow automation tool rundeck sources structured text files to create its inventory of nodes. But if you use chef as your source of truth of your server/node inventory, its undesirable to have to create these flat files just for rundeck to reference. How can rundeck obtain this information dynamically from a chef server?


回答1:


chef-rundeck is a sinatra app (ruby) that interfaces with a chef server and exposes the node inventory data through a REST API in XML format.

https://github.com/oswaldlabs/chef-rundeck

I run it under supervisord for easy management of the process, management of log files, etc.




回答2:


You can also try updating the attributes of the nodes in chef via ohai.

Then from rundeck you can simply have a script to pull the attributes to rundeck where the chef tags can also be reciprocated to rundeck node tags



来源:https://stackoverflow.com/questions/25008330/how-to-obtain-node-inventory-for-rundeck-from-chef

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!