Switch if condition to Chef::Config[:solo]