Created
October 3, 2017 22:28
-
-
Save briancain/eebe9109c16ccd6281373a17846c61f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log 'message' do | |
message 'Hellloooo thereeeeee!' | |
level :info | |
end | |
reboot 'app_requires_reboot' do | |
action :request_reboot | |
reason 'Need to reboot when the run completes successfully.' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brian@localghost:vagrant-sandbox % be vagrant provision chef ±[●][master] | |
You appear to be running Vagrant outside of the official installers. | |
Note that the installers are what ensure that Vagrant has all required | |
dependencies, and Vagrant assumes that these dependencies exist. By | |
running outside of the installer environment, Vagrant may not function | |
properly. To remove this warning, install Vagrant using one of the | |
official packages from vagrantup.com. | |
==> chef: Running provisioner: chef_solo... | |
==> chef: Detected Chef (latest) is already installed | |
==> chef: Generating chef JSON and uploading... | |
==> chef: Running chef-solo... | |
==> chef: [2017-10-03T15:22:48-07:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at C:/vagrant-chef/dbb501e25eb0e6f669e7ae0159be3ca0, C:/Users/brian/code/vagrant-sandbox/C:/vagrant-chef | |
==> chef: One version per cookbook | |
==> chef: Starting Chef Client, version 12.19.36 | |
==> chef: [2017-10-03T15:22:48-07:00] INFO: *** Chef 12.19.36 *** | |
==> chef: [2017-10-03T15:22:48-07:00] INFO: Platform: i386-mingw32 | |
==> chef: [2017-10-03T15:22:48-07:00] INFO: Chef-client pid: 3960 | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Setting the run_list to ["recipe[test]"] from CLI options | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Run List is [recipe[test]] | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Run List expands to [test] | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Starting Chef Run for vagrant-2cae2514 | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Running start handlers | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Start handlers complete. | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: HTTP Request Returned 404 Not Found: Object not found: | |
==> chef: resolving cookbooks for run list: ["test"] | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Loading cookbooks [[email protected]] | |
==> chef: Synchronizing Cookbooks: | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Storing updated cookbooks/test/recipes/default.rb in the cache. | |
==> chef: - test (0.0.0) | |
==> chef: Installing Cookbook Gems: | |
==> chef: Compiling Cookbooks... | |
==> chef: Converging 2 resources | |
==> chef: Recipe: test::default | |
==> chef: * log[message] action write[2017-10-03T15:22:56-07:00] INFO: Hellloooo thereeeeee! | |
==> chef: * reboot[app_requires_reboot] action request_reboot[2017-10-03T15:22:56-07:00] WARN: Reboot requested:'app_requires_reboot' | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Changing reboot status from {} to {:delay_mins=>0, :reason=>"Need to reboot when the run completes successfully.", :timestamp=>2017-10-03 15:22:56 -0700, :requested_by=>"app_requires_reboot"} | |
==> chef: - request a system reboot to occur if the run succeeds | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Chef Run complete in 0.296481 seconds | |
==> chef: | |
==> chef: Running handlers: | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Running report handlers | |
==> chef: Running handlers complete | |
==> chef: [2017-10-03T15:22:56-07:00] INFO: Report handlers complete | |
==> chef: Chef Client finished, 2/2 resources updated in 08 seconds | |
==> chef: [2017-10-03T15:22:56-07:00] WARN: Rebooting server at a recipe's request. Details: {:delay_mins=>0, :reason=>"Need to reboot when the run completes successfully.", :timestamp=>2017-10-03 15:22:56 -0700, :requested_by=>"app_requires_reboot"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment