chef-bach
chef-bach copied to clipboard
The cluster_def gem needs to be integrated into chef recipes
Right now cluster_def distribution seems to be entirely handled via shell script. It needs to be versioned with our cookbooks, and fully integrated into the chef cookbooks.
- There needs to be a build recipe in
bach_repository
, so that updated sources are folded into the gems. - There needs to be an idempotent install recipe somewhere in
role[Basic]
so that non-bootstrap nodes are updated promptly. - The idempotent install recipe needs to also handle the bootstrap.
- The gem needs to be versioned so that it can be upgraded on each Chef run if necessary.
artifact deployment seems to be there https://github.com/bloomberg/chef-bach/blob/master/cookbooks/bach_repository/recipes/gems.rb#L121-L125
test-kitchen of bach_repository
is now broken because it depends on bcpc
which in turn depends on the cluster_def
gem
I wonder if cluster-def is better distributed as a library cookbook.
For the bootstrap, we can just setup symlinks or adjust ruby paths to read the path the the library cookbook