How to obtain node inventory for rundeck from chef

2019-08-26 05:10发布

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?

标签: chef rundeck
2条回答
爷、活的狠高调
2楼-- · 2019-08-26 05:53

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

查看更多
smile是对你的礼貌
3楼-- · 2019-08-26 05:55

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.

查看更多
登录 后发表回答