[chef] Re: Re: Re: Re: Chef Client 12.1.0 Released


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: Chef Client 12.1.0 Released
  • Date: Tue, 3 Mar 2015 15:30:29 -0800

in recipe if you require the library which you are installing as part of the chef run, you are forced to install them at compile time, which causes pain (same reason why chef_gem compile_time true as default is deprecated). This also mean those recipes or any recipe that depends on them will fail as well during why_run.

A safer way of doing this will be to add the require statement in provider action method. Chef why_run module provider resource requirements based based checks, they are also useful to get fine grained information (like if you can load this library then only you can conclusively say whether the resource will be updated or not .. etc)

regards
ranjib

On Tue, Mar 3, 2015 at 3:24 PM, Nathan Williams < " target="_blank"> > wrote:
> requiring gems in recipe code was bad practice

is there any background reading on this? i find we use chef_gem for chef-rewind and `require 'chef/rewind'` quite often, but this would seem to indicate there's a better practice. if so, i'd love to hear more about it as this is the first time it's crossed my radar.

On Tue, Mar 3, 2015 at 1:43 PM, Jeff Byrnes < " target="_blank"> > wrote:
A potential solution might be to wrap those sorts of things in backticks, to avoid triggering the italicizing behavior (which I suspect is Markdown of some sort), and preserve these programmy things.

-- 
Jeff Byrnes
@thejeffbyrnes
Lead DevOps Engineer

On March 3, 2015 at 2:57:03 PM, Morgan Blackthorne ( " target="_blank"> ) wrote:

I think that the blog interpreting underscores as italics is a bit wonky when so many chef things are blah_blah2. I'm not sure if it just needs to be edited to syntax-highlight/format those keywords, or if you're better off disabling that auto-italic feature, but the text as stands is definitely confusing visually, even if I can intuit what is meant.

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS

On Tue, Mar 3, 2015 at 10:43 AM, Jay Mundrawala < " target="_blank"> > wrote:
Hi Chefs,
We've just released Chef 12.1.0. You can read more about it at https://www.chef.io/blog/2015/03/03/chef-12-1-0-released/.

Thanks,
Jay






Archive powered by MHonArc 2.6.16.

§