Learning Chef by Mischa Taylor

Learning Chef by Mischa Taylor

Author:Mischa Taylor
Language: eng
Format: epub
ISBN: 9781491944936
Publisher: O'Reilly Media
Published: 2015-01-07T16:00:00+00:00


Figure 9-14. Node detail

In order to run vagrant halt to perform a graceful shutdown of your virtual machines, you’ll need to make sure the Vagrantfile directory that is used by vagrant to configure the virtual machine is the current working directory. As of this writing, the associated Vagrantfiles are located in the .kitchen directory that Test Kitchen uses for temporary files in a directory matching the suite name in the .kitchen.yml. To halt both virtual machines, run the following commands:

$ cd ~/chef-repo/cookbooks/enterprise-chef/.kitchen/kitchen-vagrant/ $ default-centos65 vagrant halt ==> default: Attempting graceful shutdown of VM... $ cd ~/chef-repo/cookbooks/node/.kitchen/kitchen-vagrant/node-centos65 $ vagrant halt ==> default: Attempting graceful shutdown of VM...

When you want to restart them, run vagrant reload against both Vagrantfiles:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.