How to do parellel bootstrap on different machine using chef?

二次信任 提交于 2019-12-12 05:43:30

问题


Suppose I have written five different recipes and I have five different target nodes.

How can I fire a bootstrap command that will address all 5 nodes at ones and it will execute the specified recipes(one for one) in parallel on each target node.


回答1:


There is way to bootstrap multiple cookbooks on multiple machines at a time using spiceweasel . In this first install the spiceweasel package on the node . U need to create a yaml file and load ur data in the file .. like node ip , cookbook name .

go through this link , it will give you an idea

https://github.com/mattray/spiceweasel#cookbooks



来源:https://stackoverflow.com/questions/24263739/how-to-do-parellel-bootstrap-on-different-machine-using-chef

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