Skip to content

Instantly share code, notes, and snippets.

@finn
finn / Jenkins
Created May 7, 2017 18:30 — forked from johnbuhay/Jenkins
Jenkins | Configurations done via init.groovy.d
This file used to name this gist.
@finn
finn / disqussion.md
Last active November 30, 2015 00:02 — forked from tknerr/disqussion
Restored comments from DISQUS discussion about the environment cookbook pattern: http://vialstudios.logdown.com/posts/166848-the-environment-cookbook-pattern

Torben Knerr

Nice post! Finally some clarification on the different interpretations of what an application, library or wrapper cookbook is :-)

I have one question about the environment cookbooks though: what if you have two different applications (e.g. my_face and your_face) requiring a different set of dependencies running in the same environment?

IMHO locking dependency versions and exposing the public recipes / attributes via metadata.rb is a great thing, but it should be doable on a finer-grained basis than environments, namely on a per application (e.g. my_face) basis. For this exact reason I'm not using chef environments to lock the dependency versions, but rather something like an "uber application cookbook" which combines the properties of an application cookbook and the locking and documentation of an environment cookbook.