From 38c7203f92e6ffba4cb4873a73bc6d20050d9100 Mon Sep 17 00:00:00 2001 From: Shawn Neal Date: Fri, 25 Apr 2014 15:12:25 -0700 Subject: [PATCH] Chef provisioner should utilize reboot capability --- plugins/provisioners/chef/provisioner/chef_client.rb | 4 ++++ plugins/provisioners/chef/provisioner/chef_solo.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugins/provisioners/chef/provisioner/chef_client.rb b/plugins/provisioners/chef/provisioner/chef_client.rb index 50bf04c37..935cec6bf 100644 --- a/plugins/provisioners/chef/provisioner/chef_client.rb +++ b/plugins/provisioners/chef/provisioner/chef_client.rb @@ -58,6 +58,10 @@ module VagrantPlugins @machine.ui.warn(I18n.t("vagrant.chef_run_list_empty")) end + if @machine.guest.capability?(:wait_for_reboot) + @machine.guest.capability(:wait_for_reboot) + end + if windows? # This re-establishes our symbolic links if they were # created between now and a reboot diff --git a/plugins/provisioners/chef/provisioner/chef_solo.rb b/plugins/provisioners/chef/provisioner/chef_solo.rb index 38e5d56e0..db926e11c 100644 --- a/plugins/provisioners/chef/provisioner/chef_solo.rb +++ b/plugins/provisioners/chef/provisioner/chef_solo.rb @@ -134,6 +134,10 @@ module VagrantPlugins @machine.ui.warn(I18n.t("vagrant.chef_run_list_empty")) end + if @machine.guest.capability?(:wait_for_reboot) + @machine.guest.capability(:wait_for_reboot) + end + if windows? # This re-establishes our symbolic links if they were # created between now and a reboot