[chef] Re: Re: LWRP + notification


Chronological Thread 
  • From: Guilhem Lettron < >
  • To:
  • Subject: [chef] Re: Re: LWRP + notification
  • Date: Mon, 19 Aug 2013 17:44:15 +0200

Thank you for this answer, but I don't understand what you mean by "LWRP resource in your recipe notify the template resource".

Guilhem Lettron


On Mon, Aug 19, 2013 at 4:44 PM, Daniel DeLeo < " target="_blank"> > wrote:

On Monday, August 19, 2013 at 7:37 AM, Guilhem Lettron wrote:

Hi all,

I have some problem with notification in LWRP.
Notifications don't work as I expect.

For example, I want to update a configuration file when I add a module.
Template resource is defined in an install recipe and I want to notifies it to take care of modification by LWRP. (I can't use something like ".d" folder).
I also want to restart service and I don't want to duplicate service code (because service can be upstart / init / something else, and this code is manage in a different recipe). So a notification on "service[prosody]" define in a "service" recipe is something great... I can't use...

I try with use_inline_resources and without.

Can I do something else? Or Am I wrong somewhere?

Latest chef version installed.
When using `use_inline_resources`, your LWRPs execute in a self-contained chef run with each action having an independent compile/converge phase and resource collection. To do what you want, just have the LWRP resource in your recipe notify the template resource.

 

Thank you.

Guilhem Lettron


-- 
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§