[chef] Re: chef + managed-directory pain


Chronological Thread 
  • From: Peter Donald < >
  • To: " " < >
  • Subject: [chef] Re: chef + managed-directory pain
  • Date: Sat, 25 Aug 2012 01:22:34 +1000

Hi,

We use the following pattern quite extensively. Just say you have a collection of Xs that you want to manage exclusively through chef. We create a LWRP such as mycookbook_x that creates the x. We also publish as attribute data on the node the definitions of Xs. Either the LWRP publishes the attribute data or we have a recipe that interprets the node data and instantiates the LWRPs. Then we have a recipe that  scans the set of resources and deletes any Xs that are not present in the node data. 

We have used this for 
- files in a directory
- destinations in a message broker
- resources in an app server
- applications deployed to app server 
Etc.

We have had  a lot of success with is approach. Hth


--
Cheers,

Peter Donald



Archive powered by MHonArc 2.6.16.

§