Additionally, I learned a cool trick recently.
You can "override" the source cookbook and file of a template. Example:
include_recipe 'varnish'
begin
r = resources(:template => node['varnish']['default'])
r.source "custom-default.erb"
r.cookbook "mosaic"
rescue Chef::Exceptions::ResourceNotFound
Chef::Log.warn "could not find VARNISH template to override!"
End
Where mosaic is our custom cookbook for our product and custom-default.erb is our custom default we want the Varnish Community Cookbook to use. It was fantastic for changing a small element of the cookbook without having to fork it entirely :)
Calvin
From: Seth Vargo <
">
>
Reply-To: " "> " < "> > Date: Wednesday, March 19, 2014 12:04 PM To: " "> " < "> > Subject: [chef] Re: using Berkshelf
Sam,
I'd recommend watching Jamie's presentation: http://www.youtube.com/watch?v=hYt0E84kYUI
Thanks,
Seth
On Mar 19, 2014, at 2:52 PM, Sam Darwin <
">
> wrote:
Hi, This email and any attachments may contain confidential and proprietary information of Blackboard that is for the sole use of the intended recipient. If you are not the intended recipient, disclosure, copying, re-distribution or other use of any of this information is strictly prohibited. Please immediately notify the sender and delete this transmission if you received this email in error. |
Archive powered by MHonArc 2.6.16.