How to do parellel bootstrap on different machine

2019-08-31 04:40发布

问题:

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