chef-bach icon indicating copy to clipboard operation
chef-bach copied to clipboard

The cluster_def gem needs to be integrated into chef recipes

Open http-418 opened this issue 6 years ago • 3 comments

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.

http-418 avatar Apr 27 '18 22:04 http-418

artifact deployment seems to be there https://github.com/bloomberg/chef-bach/blob/master/cookbooks/bach_repository/recipes/gems.rb#L121-L125

aespinosa avatar May 01 '18 13:05 aespinosa

test-kitchen of bach_repository is now broken because it depends on bcpc which in turn depends on the cluster_def gem

aespinosa avatar May 08 '18 14:05 aespinosa

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

aespinosa avatar May 11 '18 15:05 aespinosa