[chef] Re: Re: Query node's environment from recipe?


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: Nathen Harvey < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: Query node's environment from recipe?
  • Date: Fri, 7 Nov 2014 10:15:21 -0800

node.chef_environment also works.

--
~*~ 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 Fri, Nov 7, 2014 at 10:07 AM, Nathen Harvey < " target="_blank"> > wrote:
node.environment() should do it

On Fri, Nov 7, 2014 at 1:02 PM, Jeff Blaine < " target="_blank"> > wrote:
I'm failing.

How does one determine the current node's Chef environment from within a
recipe?

node['environment'] and node['chef_environment'] do not seem to be the way.

--
Jeff Blaine
kickflop.net
PGP/GnuPG Key ID: 0x0C8EDD02





Archive powered by MHonArc 2.6.16.

§