[chef] Re: Re: Re: IPMI / Ohai


Chronological Thread 
  • From: Jay Feldblum < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: IPMI / Ohai
  • Date: Mon, 23 Sep 2013 16:49:41 -0400

Graham,

It is perfectly fine to cache the results of slow computations such as IPMI detection where the results are extremely unlikely to change over the cache's lifetime. The ohai hints directory is a great place for ohai plugins to use as a cache. Since this is the non-default course of action, however, document what is being cached and why so that your successor (or you in six months) is not surprised.

Cheers,
Jay Feldblum

On Mon, Sep 23, 2013 at 11:52 AM, Graham Christensen < " target="_blank"> > wrote:
Based on this then, I suspect the time this could take is highly variable. Is it bad form to create a hint file from within an ohai plugin? just essentially `echo '{"detected": false}' > /etc/chef/ohai/hints/ipmi.json` or  `echo '{"detected": true}' > /etc/chef/ohai/hints/ipmi.json` after the first detection?

Thank you,

Graham

-- 
Graham Christensen
Sent with Sparrow




Archive powered by MHonArc 2.6.16.

§