-
-
Save brylor/1ce5151d083f62b40716bbd3e09f4519 to your computer and use it in GitHub Desktop.
This file contains 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
$ chef-solo -j workstation.rb -c solo.rb 130 ↵ | |
Starting Chef Client, version 13.8.5 | |
resolving cookbooks for run list: ["workstation"] | |
Synchronizing Cookbooks: | |
- homebrew (5.0.2) | |
- workstation (0.1.0) | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
Converging 6 resources | |
Recipe: workstation::default | |
* homebrew_tap[caskroom/cask] action tap (up to date) | |
* homebrew_cask[firefox] action install | |
Running handlers: | |
[2018-03-09T14:45:40-07:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2018-03-09T14:45:40-07:00] ERROR: Exception handlers complete | |
Chef Client failed. 0 resources updated in 04 seconds | |
[2018-03-09T14:45:40-07:00] FATAL: Stacktrace dumped to /Users/btaylor/Development/osx-chef-solo/chef-solo/chef-stacktrace.out | |
[2018-03-09T14:45:40-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2018-03-09T14:45:40-07:00] ERROR: undefined method `find_homebrew_uid' for Chef::Mixin::HomebrewUser:Module | |
[2018-03-09T14:45:40-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
This file contains 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
# | |
# Cookbook:: workstation | |
# Recipe:: default | |
# | |
# Copyright:: 2018, The Authors, All Rights Reserved. | |
homebrew_tap 'caskroom/cask' | |
homebrew_cask 'firefox' | |
homebrew_package 'wget' do | |
action :install | |
end | |
homebrew_package 'postgresql' do | |
version '9.5' | |
action :install | |
end | |
homebrew_package 'maven' do | |
action :install | |
end | |
homebrew_package 'openssl' do | |
action :install | |
end |
This file contains 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
Generated at 2018-03-09 14:40:32 -0700 | |
NoMethodError: undefined method `find_homebrew_uid' for Chef::Mixin::HomebrewUser:Module | |
/Users/btaylor/Development/osx-chef-solo/chef-solo/cookbooks/homebrew/libraries/helpers.rb:36:in `owner' | |
/Users/btaylor/Development/osx-chef-solo/chef-solo/cookbooks/homebrew/resources/cask.rb:25:in `block in class_from_file' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:648:in `instance_exec' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:648:in `exec_in_resource' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:666:in `stored_value_to_output' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:352:in `get' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource.rb:645:in `block in to_text' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource.rb:643:in `map' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource.rb:643:in `to_text' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:46:in `add_explanation' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/formatters/error_mapper.rb:72:in `resource_failed' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/formatters/base.rb:139:in `resource_failed' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/formatters/doc.rb:313:in `resource_failed' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/event_dispatch/dispatcher.rb:43:in `call' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/event_dispatch/dispatcher.rb:43:in `block in call_subscribers' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/event_dispatch/dispatcher.rb:34:in `each' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/event_dispatch/dispatcher.rb:34:in `call_subscribers' | |
(eval):2:in `resource_failed' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource.rb:603:in `rescue in run_action' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource.rb:589:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:70:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:98:in `block (2 levels) in converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:98:in `each' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:98:in `block in converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:97:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:718:in `block in converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:713:in `catch' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:713:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:752:in `converge_and_save' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:286:in `run' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:292:in `block in fork_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:280:in `fork' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:280:in `fork_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:245:in `block in run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/local_mode.rb:44:in `with_server_connectivity' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:233:in `run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:469:in `sleep_then_run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:458:in `block in interval_run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:457:in `loop' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:457:in `interval_run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:441:in `run_application' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:59:in `run' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/solo.rb:225:in `run' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/bin/chef-solo:25:in `<top (required)>' | |
/usr/local/bin/chef-solo:59:in `load' | |
/usr/local/bin/chef-solo:59:in `<main>' | |
>>>> Caused by NoMethodError: undefined method `find_homebrew_uid' for Chef::Mixin::HomebrewUser:Module | |
/Users/btaylor/Development/osx-chef-solo/chef-solo/cookbooks/homebrew/libraries/helpers.rb:36:in `owner' | |
/Users/btaylor/Development/osx-chef-solo/chef-solo/cookbooks/homebrew/resources/cask.rb:25:in `block in class_from_file' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:648:in `instance_exec' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:648:in `exec_in_resource' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:666:in `stored_value_to_output' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:352:in `get' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:281:in `call' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/property.rb:525:in `owner' | |
/Users/btaylor/Development/osx-chef-solo/chef-solo/cookbooks/homebrew/resources/cask.rb:61:in `casked?' | |
/Users/btaylor/Development/osx-chef-solo/chef-solo/cookbooks/homebrew/resources/cask.rb:30:in `block in class_from_file' | |
(eval):2:in `block in action_install' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/provider.rb:211:in `instance_eval' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/provider.rb:211:in `compile_and_converge_action' | |
(eval):2:in `action_install' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/provider.rb:171:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource.rb:591:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:70:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:98:in `block (2 levels) in converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:98:in `each' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:98:in `block in converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/runner.rb:97:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:718:in `block in converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:713:in `catch' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:713:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:752:in `converge_and_save' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/client.rb:286:in `run' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:292:in `block in fork_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:280:in `fork' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:280:in `fork_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:245:in `block in run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/local_mode.rb:44:in `with_server_connectivity' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:233:in `run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:469:in `sleep_then_run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:458:in `block in interval_run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:457:in `loop' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:457:in `interval_run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/client.rb:441:in `run_application' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application.rb:59:in `run' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib/chef/application/solo.rb:225:in `run' | |
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/bin/chef-solo:25:in `<top (required)>' | |
/usr/local/bin/chef-solo:59:in `load' | |
/usr/local/bin/chef-solo:59:in `<main>' |
This file contains 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
$ cat solo.rb | |
file_cache_path "/Users/btaylor/Development/osx-chef-solo/chef-solo" | |
cookbook_path "/Users/btaylor/Development/osx-chef-solo/chef-repo/cookbooks" |
This file contains 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
$ tree | |
. | |
├── chef-repo | |
│ ├── cookbooks | |
│ │ ├── homebrew | |
│ │ │ ├── CHANGELOG.md | |
│ │ │ ├── CONTRIBUTING.md | |
│ │ │ ├── README.md | |
│ │ │ ├── attributes | |
│ │ │ │ └── default.rb | |
│ │ │ ├── libraries | |
│ │ │ │ └── helpers.rb | |
│ │ │ ├── metadata.json | |
│ │ │ ├── recipes | |
│ │ │ │ ├── cask.rb | |
│ │ │ │ ├── default.rb | |
│ │ │ │ ├── install_casks.rb | |
│ │ │ │ ├── install_formulas.rb | |
│ │ │ │ └── install_taps.rb | |
│ │ │ └── resources | |
│ │ │ ├── cask.rb | |
│ │ │ └── tap.rb | |
│ │ ├── homebrew_packages | |
│ │ │ ├── Berksfile | |
│ │ │ ├── LICENSE | |
│ │ │ ├── README.md | |
│ │ │ ├── attributes | |
│ │ │ │ └── default.rb | |
│ │ │ ├── chefignore | |
│ │ │ ├── metadata.json | |
│ │ │ ├── metadata.rb | |
│ │ │ └── recipes | |
│ │ │ └── default.rb | |
│ │ └── workstation | |
│ │ ├── Berksfile | |
│ │ ├── LICENSE | |
│ │ ├── README.md | |
│ │ ├── chefignore | |
│ │ ├── metadata.rb | |
│ │ ├── recipes | |
│ │ │ └── default.rb | |
│ │ ├── spec | |
│ │ │ ├── spec_helper.rb | |
│ │ │ └── unit | |
│ │ │ └── recipes | |
│ │ │ └── default_spec.rb | |
│ │ └── test | |
│ │ └── integration | |
│ │ └── default | |
│ │ └── default_test.rb | |
│ ├── nodes | |
│ │ └── Bryans-MacBook-Pro.local.json | |
│ ├── solo.rb | |
│ └── workstation.rb | |
├── chef-solo | |
│ ├── chef-client-running.pid | |
│ ├── chef-stacktrace.out | |
│ └── cookbooks | |
│ ├── homebrew | |
│ │ ├── CHANGELOG.md | |
│ │ ├── CONTRIBUTING.md | |
│ │ ├── README.md | |
│ │ ├── attributes | |
│ │ │ └── default.rb | |
│ │ ├── libraries | |
│ │ │ └── helpers.rb | |
│ │ ├── metadata.json | |
│ │ ├── recipes | |
│ │ │ ├── cask.rb | |
│ │ │ ├── default.rb | |
│ │ │ ├── install_casks.rb | |
│ │ │ ├── install_formulas.rb | |
│ │ │ └── install_taps.rb | |
│ │ └── resources | |
│ │ ├── cask.rb | |
│ │ └── tap.rb | |
│ ├── homebrew_packages | |
│ │ ├── attributes | |
│ │ └── recipes | |
│ └── workstation | |
│ ├── Berksfile | |
│ ├── LICENSE | |
│ ├── README.md | |
│ ├── chefignore | |
│ ├── metadata.rb | |
│ ├── recipes | |
│ │ └── default.rb | |
│ ├── spec | |
│ │ ├── spec_helper.rb | |
│ │ └── unit | |
│ │ └── recipes | |
│ │ └── default_spec.rb | |
│ └── test | |
│ └── integration | |
│ └── default | |
│ └── default_test.rb | |
└── local-mode-cache | |
└── cache | |
├── chef-client-running.pid | |
└── chef-stacktrace.out |
This file contains 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
$ cat workstation.rb | |
{ | |
"run_list": [ "recipe[workstation]"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment