[chef] Re: Moving role attributes into cookbooks


Chronological Thread 
  • From: Jeff Byrnes < >
  • To:
  • Subject: [chef] Re: Moving role attributes into cookbooks
  • Date: Mon, 17 Mar 2014 14:23:36 -0400

Doug:

I’m not sure if you’re using EC2, but if so, and you’re launching instances using knife-ec2, you should have node['ec2']['placement_availability_zone'] available. You could build a single wrapper cookbook, that depends on that attribute’s value, and determines the requisite data center-specific attributes.

-- 
Jeff Byrnes
@berkleebassist
Operations Engineer
704.516.4628

On March 17, 2014 at 1:54:21 PM, Douglas Garstang ( "> ) wrote:

Doing what I read to be a best practice, I just took a bunch of roles that defined set attributes for specific data centers, and moved them into cookbooks, one per location, ie:

bc-location-u1
bc-location.eu1

and so on. I just occurred to me that if I do this, then all cookbooks will need to depend (in the metadata.rb) file on ALL of these location based cookbooks.

is this correct? What am I missing?

Doug





Archive powered by MHonArc 2.6.16.

§