Determine if Chef Run is Solo or Client


#1

Is there a way to determine if the chef run is from chef-solo or chef-client?


#2

You can check Chef::Config[:solo]:

https://github.com/opscode/cookbooks/blob/master/mysql/recipes/server.rb#L100


Seth Chisamore
Software Design Engineer, Opscode, Inc.
IRC, Skype, Twitter, Github: schisamo

On Friday, February 10, 2012 at 4:17 PM, bjbq4d@gmail.com wrote:

Is there a way to determine if the chef run is from chef-solo or chef-client?