[chef] How to suppress notifications in LWRP


Chronological Thread 
  • From: Fabry Zio < >
  • To: " " < >
  • Subject: [chef] How to suppress notifications in LWRP
  • Date: Tue, 23 Apr 2013 09:43:15 +0100 (BST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=J5b6xAY5Q50EWOHMFo1U6+7r5sL5A0fqze7Pn4C1+XDNTTlWzm/GYFL9q76qlEWfReVwn40q4dRzhGTu7oq7W1/+FRmrmbLK2mUg+fDo6CjHm5+n7DUD0cyuxVh0kutffIEq16rQCk9P2+dP0OqNjcGOq6Qfbsk0i365B0rWeZA=;

Hi all,

I'm developing a custom LWRP to install a sort of application server, but I've the following problem...

In my actions I've to call some "bash" and "ruby_block" resources in order to make some elaborations on configuration files (like keystores and patches) that I cannot do with the "template" resource.
Not always these elaborations bring to a real change in the server configuration, so not always my LWRP has to notify a resource change (for example to cause a server restart).
But, as for I can understand, if a "bash" or "ruby_block" resource is put in the converge_actions list for my LWRP, it will cause a change notification in my resource even if I never set: @new_resource.updated_by_last_action(true)

Currently I'm calling the use_inline_resources method at the beginning of my LWRP.

Is there a way to control this change notification?
Or may I override the set_updated_status method in my LWRP ?

Thank you a lot
Regards



Archive powered by MHonArc 2.6.16.

§