[chef] Re: tow to tell if chef-solo or hosted chef


Chronological Thread 
  • From: "joe.nuspl" < >
  • To:
  • Subject: [chef] Re: tow to tell if chef-solo or hosted chef
  • Date: Thu, 11 Jul 2013 10:59:30 -0700

You can test for chef-solo via the following construct:

        if Chef::Config[:solo]
        else
        end

I know others are testing for hosted vs. private vs. osc by checking the 
hostname of the chef server.

        Joe


On Jul 11, 2013, at 10:51 AM, David Montgomery wrote:

> 
> Hi,
> 
> How can I tell from a recipe if using chef-solo or hosted chef?
> 
> Is there an env variable somewhere?
> 
> Thanks




Archive powered by MHonArc 2.6.16.

§