Hi guys, My blog entry has a lot of the design patterns, and I quote a bunch of others. It's a good backgrounder: http://newgoliath.wordpress.com/2013/03/08/orchestration-consistency-and-community-cookbooks/
This past sprint I started the code updates. This coming sprint I'll be finishing them up, teamed up with Wayne from our team. If we are to create a short list of the pattern, here it is: * no attribute l-values in recipes * no OS detection in recipes * define all OS dependent variables in attibutes/default.rb * define all l-values in attirubtes/default.rb * do not use recipes/default.rb * recipes should be named as if they were methods * in recipes, oft-repeated patterns should be abstracted into a function in a library/<objectname>.rb * example: https://github.com/att-cloud/cookbook-openstack-common/blob/master/libraries/endpoints.rb On Wed, Mar 13, 2013 at 1:56 PM, James Tan <ja...@suse.de> wrote: > On 03/07/2013 11:13 AM, Vincent Untz wrote: > > Hi, > > > > First, thanks for the overview on attribute injection in yesterday's > > call. This was quite useful to better understand what this all means and > > why we are moving this way, as well as how things can look like (with > > the keystone cookbook example). > > > > Ideally, we'd have a good example of porting a cookbook of a core > > barclamp to AI, which people can use as model when porting the other > > cookbooks. Is anybody working on such an example? > > Agreed, a reference implementation would be very useful. Do we already > have something like that? If not, let's pick one and make it so? > > Cheers, > James T. > > > _______________________________________________ > Crowbar mailing list > Crowbar@dell.com > https://lists.us.dell.com/mailman/listinfo/crowbar > For more information: http://crowbar.github.com/ > -- Judd Maltin T: 917-882-1270 F: 501-694-7809 what could possibly go wrong?
_______________________________________________ Crowbar mailing list Crowbar@dell.com https://lists.us.dell.com/mailman/listinfo/crowbar For more information: http://crowbar.github.com/