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

contributed smartsense-chef recipe

Open dbist opened this issue 8 years ago • 4 comments

dbist avatar Oct 25 '16 15:10 dbist

I would think we'll need a wrapper recipe here @dbist. I see a number of attributes in the Smartsense cookbook which should be aligned with what we use in Chef-BACH:

As an aside, it looks like your Test Kitchen configs may have polluted your cookbook:

Also you'll want to pull your apt config into attributes from hardcoded in your recipe as some Chef-BACH clusters are run behind proxies or without Internet access.

cbaenziger avatar Oct 25 '16 19:10 cbaenziger

For reference, a wrapper cookbook in Chef-BACH today is the kafka-bcpc cookbook which has a recipe to wrap attributes; for Smart Sense I would think simply a recipe in bcpc-hadoop would suffice. (Some theory behind wrapper cookbooks can be found web-searching around too.)

cbaenziger avatar Oct 26 '16 20:10 cbaenziger

~~node[:smartsense-chef][:java_home] should equal node[:bcpc][:hadoop][:java]~~ ~~node[:smartsense-chef][:cluster_name] should equal node.chef_environment as is our convention.~~

~~As an aside, it looks like your Test Kitchen configs may have polluted your cookbook:~~

~~Java attributes and an errant include_recipe would be good to pull out into your .kitchen.yml~~

~~Also you'll want to pull your apt config into attributes from hardcoded in your recipe as some Chef-BACH clusters are run behind proxies or without Internet access.~~

@cbaenziger also, not sure how to leverage wrapper recipe over .kitchen.yml entries, it did not take effect, please advise

I updated trunk, most likely need to generate new PR?

dbist avatar Oct 27 '16 12:10 dbist

@cbaenziger any updates on this?

dbist avatar Nov 09 '16 17:11 dbist