[chef] Re: Re: pre-update notifications


Chronological Thread 
  • From: Grégoire Seux < >
  • To: < >
  • Subject: [chef] Re: Re: pre-update notifications
  • Date: Thu, 22 Aug 2013 19:28:32 +0200

Le 22/08/2013 17:06, Daniel DeLeo a écrit :
" type="cite">
Your problem here is that Chef resources are declarative, i.e., they say what the state of the system should be, but in this case you're trying to control the way the system transitions from one state (old packages) to another (up-to-date packages). The best way to accomplish this is to write a LWRP that checks if a new package is available and shuts the service down before upgrading.

I agree with you that I want to go further than simply declare resources. Allowing notifications and subscription is already a step in that direction.

I have wrapped the logic in a lwrp (https://gist.github.com/kamaradclimber/6306398) it gives a not so complicated way to declare prehooks

--
Gregoire



Archive powered by MHonArc 2.6.16.

§