- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Overriding parts of recipes?
- Date: Mon, 31 May 2010 11:43:05 -0700
Ohai!
We now have support for vendoring cookbooks integrated into knife.
This lets you maintain your changes to a cookbook as a small patch,
handled by your SCM (git only for now AFAIK) while still fetching
changes from the upstream. Have a look at `knife cookbook site vendor`
HTH,
Dan DeLeo
On Mon, May 31, 2010 at 11:20 AM, Ho-Sheng Hsiao
<
>
wrote:
>
You could create a site-tomcat6 cookbook in which the recipe there
>
include_recipe(:tomcat) to include it.
>
>
I personally would not want to have an implicit merge for cookbooks.
>
>
-Hosh
>
>
On Mon, May 31, 2010 at 4:55 AM, Chad Woolley
>
<
>
>
wrote:
>
> I need to override the tomcat6 recipe to disable a single line:
>
>
>
> http://github.com/opscode/cookbooks/blob/master/tomcat6/recipes/default.rb#L192
>
>
>
> How should I go about this? I tried this and failed:
>
>
>
> 1. I have my custom cookbooks in the cookbook_path after the opscode
>
> version
>
> 2. I created a 'tomcat6' cookbook in my custom cookbooks, which only
>
> override this single template entry in the default recipe
>
>
>
> However, this doesn't work, because it doesn't seem to process the
>
> main opscode version before mine. Is it possible to "merge" them to
>
> have all the logic from the original with only my override, THEN run
>
> it?
>
>
>
> My only option now seems to be to clone the entire opscode original
>
> cookbook into my custom cookbooks and disable that one line, which
>
> seems less than optimal.
>
>
>
> Thanks,
>
> -- Chad
>
>
>
> P.S. When googling I found this, but it doesn't answer my problem:
>
> http://support.scalarium.com/faqs/custom-instance-setup/how-to-override-templates-in-custom-chef-recipes
>
>
>
Archive powered by MHonArc 2.6.16.