I am trying to have a git repository which manages my environment. I have set of lwrp written for specific tasks. These lwrps internally depends on many community cookbooks.
Each of my cookbook has a Berksfile where I specify dependency resolution. In the root folder of my repository I have a main Berksfile which lists all the cookbooks I want from my repository.
What I want now is, when I do a berks install from the root location, it should fetch my cookbooks and then parse through them to find individual berks file from each of those cookbooks and resolve all dependencies. However it is not behaving like that.
Anybody has any idea regarding this ? Is this common scenario of how Berks work ? Or am I missing something so that the dependencies are not resolved?
To give more info : My cookbook has this berksfile
source 'https://supermarket.chef.io'
cookbook 'apache_spark', '~> 1.2.12'
And the apache spark has internal dependency on
cookbook 'monit', github: 'phlipper/chef-monit', tag: '1.5.2'