Yeah, since you want to use the gem at compile time in recipe code by design its one use case where forcing compile time is actually what you want. At the same time its trivial to do chef-rewind without the chef-rewind gem which can avoid that problem entirely: # override the redis.conf template from the redis cookbook with my wrapper cookbook resources(template: "#{node['redis']['conf_dir']}/redis.conf").cookbook(cookbook_name) You can also drop the chef-rewind code into a cookbook library file and include it that way and avoid the gem require, which is a much better pattern for distributing library code to be used in chef recipes. On 3/3/15 3:28 PM, Morgan Blackthorne wrote: " type="cite"> |
Archive powered by MHonArc 2.6.16.