[chef] Re: Re: Ohai Plugins Available when evaluating attributes.rb?


Chronological Thread 
  • From: Douglas Garstang < >
  • To:
  • Subject: [chef] Re: Re: Ohai Plugins Available when evaluating attributes.rb?
  • Date: Fri, 30 Jan 2015 13:33:46 -0800

That's not the behaviour I saw. I was putting a 'puts' in the attributes/default.rb file and doing a chef-client run. Stuff set from core ohai was showing up. Stuff set from custom ohai plugins was not. The stuff from custom ohai plugins is available in recipes though.

Doug.

On Thu, Jan 29, 2015 at 6:19 PM, Ranjib Dey < " target="_blank"> > wrote:
yes, if its a ohai plugins it will be evaluated in the node build stage, which happens before cookbook compilation,


On Thu, Jan 29, 2015 at 2:04 PM, Douglas Garstang < " target="_blank"> > wrote:
Is the data returned from custom ohai plugins going to be available when evaluating stuff in attributes.rb? I have a plugin which tells me if I am running inside an EC2 VPC. I'd like to use that in my attributes.rb with some 'when' logic to set some attributes. Yes? No?

Doug




--



Archive powered by MHonArc 2.6.16.

§