- From: Zuhaib Siddique <
>
- To:
- Subject: [chef] Re: Issues with Template Files after upgrading to Chef 10.6
- Date: Fri, 16 Dec 2011 18:55:49 -0800
Dan.
I fully understand that you can support all edge cases, trust me about it at
our company we have a hard time QA'ing everything. Also the hack we did is
not something I am proud about so it was a good thing it broke as it forced
me to rewrite it the right way.
The hack was something like this:
template "/tmp/properties.map" do
only_if do environment == "Webclient-INT" end
source "INT.properties.map.erb"
mode 0644
owner "tomcat6"
group "tomcat6"
variables(
<STUFF>
)
end
template "/tmp/properties.map" do
only_if do environment == "Webclient-QA" end
source "QA.properties.map.erb"
mode 0644
owner "tomcat6"
group "tomcat6"
variables(
<STUFF>
)
end
and etc… As we would bring online new Environments we would add to this. Now
I have collapsed it to a single template call and we set the source name
somewhere else.
Zjuhaib
On Dec 16, 2011, at 9:28 AM, Daniel DeLeo wrote:
>
>
>
On Thursday, December 15, 2011 at 8:17 PM, Zuhaib Siddique wrote:
>
>
> So I found the issue, it was in the past we abused the "only_if"
>
> statements for templates
>
>
Can you explain what you were doing? Were you overwriting the only_if
>
setting on the resource?
>
>
> Its a bit annoying that things change on you jut by an upgrade but hey…
>
>
We strive to never break people with patch upgrades, so I'm bummed we
>
didn't meet that standard for your case. That said, we can't catch every
>
issue with automated testing and code review, so we rely on our community
>
to test release candidates. If you'd like to help, you can join the
>
chef-dev list to be notified when beta and RC versions are available for
>
testing.
>
>
>
>
> Zuhaib
>
>
>
>
--
>
Dan DeLeo
>
Archive powered by MHonArc 2.6.16.