- From: Chad Woolley <
>
- To:
- Subject: [chef] Re: Re: Including Cookbooks Conditionally
- Date: Mon, 24 May 2010 21:14:35 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=HWafrGlS5DC+xoQA8OkNT+3r8W+F3KuNkPgN2dIJytLWSr3FFIRLVrIKZ1gqruN3GQ PSOCzypDaMfpiPIFqCHSpVd9C6YzNqL2O44oP0dGxC8VIKB6//ULqbSmx5jbNOHLTdHi 1/7X4RRyoJ670xNcGFKuvkWOn3mHz8ujcma2g=
On Sun, May 23, 2010 at 10:04 PM, Chad Woolley
<
>
wrote:
>
This is working somewhat, but delayed actions are still executed. For
>
example, the mysql server grant:
>
>
http://github.com/opscode/cookbooks/blob/master/mysql/recipes/server.rb#L97
>
>
How can I disable this as well?
Here's what I ended up doing:
collection.all_resources.each do |resource|
if resource.to_s == 'template[/etc/mysql/grants.sql]'
resource.actions[:run][:delayed].clear
end
end
Archive powered by MHonArc 2.6.16.