- From: Zuhaib Siddique <
>
- To:
- Subject: [chef] Re: Issues with Template Files after upgrading to Chef 10.6
- Date: Thu, 15 Dec 2011 12:22:17 -0800
Dan,
So the debug logs show that its skipping over the template because it claims
that my only_if statement is false:
[Thu, 15 Dec 2011 20:09:22 +0000] DEBUG: Processing
template[/tmp/oxygen/properties.map] on <Server Name>
[Thu, 15 Dec 2011 20:09:22 +0000] INFO: Processing
template[/tmp/oxygen/properties.map] action create (gridiron-deploy::default
line 46)
[Thu, 15 Dec 2011 20:09:22 +0000] DEBUG: Skipping
template[/tmp/oxygen/properties.map] due to only_if ruby block
just one problem, if I change the path and NOTHING else it says this:
[Thu, 15 Dec 2011 20:17:11 +0000] DEBUG: Processing
template[/tmp/properties.map] on <Server Name>
[Thu, 15 Dec 2011 20:17:11 +0000] INFO: Processing
template[/tmp/properties.map] action create (gridiron-deploy::default line 46)
It makes no sense that the path would cause Chef to think the only_if
statement is false. My next test is to pull the only_if statements.
Zuhaib
On Dec 15, 2011, at 8:34 AM, Daniel DeLeo wrote:
>
>
>
On Wednesday, December 14, 2011 at 11:55 PM, Zuhaib Siddique wrote:
>
>
> Actually the environment variable is not the chef environment, its
>
> something set earlier up (this was used prior to Chef 10 and I have not
>
> converted over). I just decided to go with mkdir_p because its what I knew
>
> but even if I switch to directory it still does not make sense why its
>
> refusing to create the template in that directory but its ok in any other.
>
>
Can you run chef with -ldebug and post the relevant section here? We don't
>
need all of it, just the part that shows this template resource.
>
>
--
>
Dan DeLeo
>
Archive powered by MHonArc 2.6.16.