3 ms·
If you have a very similar apps, write a "library" cookbook that does the work that's common to deploying those apps. Any values that differ across the apps sho
by sciurus 12y ago
If you have a very similar apps, write a "library" cookbook that does the work that's common to deploying those apps. Any values that differ across the apps should be set by attributes. Next write "wrapper" cookbooks for each app that set those attributes and include the "library" cookbook.
A popular blog post on the topic is http://devopsanywhere.blogspot.com/2012/11/how-to-write-reusable-chef-cookbooks.html http://devopsanywhere.blogspot.com/2012/11/how-to-write-reus...