[chef] Re: Re: Re: Re: Re: Re: Updating a template


Chronological Thread 
  • From: Kenneth Barry < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Updating a template
  • Date: Wed, 26 Mar 2014 15:04:16 -0700

"Did you check whether you have multiple copies of the cookbook locally?"

please define "locally". Do you mean local ont he node, local on the chef serve,r or local on, say, my box (in my repo????) ,or some other place


On Wed, Mar 26, 2014 at 2:53 PM, Daniel DeLeo < " target="_blank"> > wrote:


On Wednesday, March 26, 2014 at 1:32 PM, Kenneth Barry wrote:

> knife cookbook show COOKBOOK VERSION shows me the mdf hash of the old template file, which happens to be the same file obtained when downloading the cookbook.
> I deleted all versions of the cookbook from the chef server so its only offering one for download.
>
> in plain terms
> it was version 1.0.0(example), and i noticed the template wasn't changing (as in, the file created by templates isnt different), so i change it to 1.0.1, deleted the cookbook "1.0.0" from the server, and uploaded new version.
>
> same results (template appears to be the old one still),
>
> I downloaded the cookbook from server, and it downloaded the old template file, not the new one)
>
> it appears, by all indications, that the chef server is retaining the old tempalte, even thru a knife cookbook delete,

Did you check whether you have multiple copies of the cookbook locally? Knife will combine cookbooks that exist in multiple locations in your cookbook paths into a single cookbook with one overlaid on the other. This feature is deprecated and supposed to trigger a warning, but I just discovered that the warning was inadvertently removed, so it’s possible that you are triggering this feature accidentally without knowing it.

--
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§