diff --git a/lib/kitchen/provisioner/chef_solo.rb b/lib/kitchen/provisioner/chef_solo.rb index b1108b064..a574d924b 100644 --- a/lib/kitchen/provisioner/chef_solo.rb +++ b/lib/kitchen/provisioner/chef_solo.rb @@ -28,6 +28,7 @@ module Provisioner class ChefSolo < ChefBase default_config :solo_rb, {} + default_config :chef_solo_command, "chef-solo" def create_sandbox super @@ -36,7 +37,7 @@ def create_sandbox def run_command [ - sudo('chef-solo'), + sudo(config[:chef_solo_command]), "--config #{config[:root_path]}/solo.rb", "--json-attributes #{config[:root_path]}/dna.json", config[:log_file] ? "--logfile #{config[:log_file]}" : nil,