Created
June 16, 2015 18:57
-
-
Save jpshelley/cebc7b1a595bb996c090 to your computer and use it in GitHub Desktop.
source "https://rubygems.org" gem "chef", "~> 11.0" gem 'librarian-chef', '~> 0.0.4'
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
-> Making sure /opt exists and I can write to it | |
run sudo mkdir -p /opt from "." | |
run while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null from "." | |
Password: | |
run sudo chown -R john.shelley /opt from "." | |
-> Setting up bundler | |
identical pt.kitchenplan.Gemfile | |
run mkdir -p vendor/cache from ".opt.kitchenplan" | |
run rm -rf vendor/bundle/config from ".opt.kitchenplan" | |
run ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install --quiet --binstubs vendor/bin --path vendor/bundle from ".opt.kitchenplan" | |
-> Compiling configurations | |
run mkdir -p tmp from ".opt.kitchenplan" | |
-> Fetch the chef cookbooks | |
run vendor/bin/librarian-chef update 2>&1 > /dev/null from ".opt.kitchenplan" | |
run sudo vendor/bin/chef-solo -c tmp/solo.rb -j tmp/kitchenplan-attributes.json -o applications::create_var_chef_cache,homebrewalt::default,nodejs::default,osxdefaults::set_terminal_profile,applications::sublime_text_3,osxdefaults::set_computer_name from ".opt.kitchenplan" | |
Starting Chef Client, version 11.18.12 | |
[2015-06-16T13:41:46-05:00] WARN: Run List override has been provided. | |
[2015-06-16T13:41:46-05:00] WARN: Original Run List: [] | |
[2015-06-16T13:41:46-05:00] WARN: Overridden Run List: [recipe[applications::create_var_chef_cache], recipe[homebrewalt::default], recipe[nodejs::default], recipe[osxdefaults::set_terminal_profile], recipe[applications::sublime_text_3], recipe[osxdefaults::set_computer_name]] | |
Compiling Cookbooks... | |
[2015-06-16T13:41:47-05:00] WARN: Cloning resource attributes for package[git] from prior resource (CHEF-3694) | |
[2015-06-16T13:41:47-05:00] WARN: Previous package[git]: /opt/kitchenplan/vendor/cookbooks/homebrewalt/recipes/default.rb:41:in `from_file' | |
[2015-06-16T13:41:47-05:00] WARN: Current package[git]: /opt/kitchenplan/vendor/cookbooks/homebrewalt/recipes/default.rb:73:in `block in from_file' | |
Converging 46 resources | |
Recipe: applications::create_var_chef_cache | |
* directory[/var/chef/cache] action create (up to date) | |
Recipe: homebrewalt::default | |
* directory[/usr/local] action create (up to date) | |
* remote_file[/var/chef/cache/homebrew_go] action create (up to date) | |
* execute[/var/chef/cache/homebrew_go] action run (skipped due to not_if) | |
* package[git] action install (skipped due to not_if) | |
* homebrewalt_tap[caskroom/cask] action tap | |
* execute[tapping caskroom/cask] action run | |
- execute sudo -u john.shelley /usr/local/bin/brew tap caskroom/cask | |
* homebrewalt_tap[caskroom/versions] action tap | |
* execute[tapping caskroom/versions] action run | |
- execute sudo -u john.shelley /usr/local/bin/brew tap caskroom/versions | |
* homebrewalt_tap[caskroom/fonts] action tap | |
* execute[tapping caskroom/fonts] action run | |
- execute sudo -u john.shelley /usr/local/bin/brew tap caskroom/fonts | |
* homebrewalt_tap[homebrew/dupes] action tap | |
* execute[tapping homebrew/dupes] action run | |
- execute sudo -u john.shelley /usr/local/bin/brew tap homebrew/dupes | |
* directory[/opt/homebrew-cask/Caskroom] action create (up to date) | |
* package[brew-cask] action install (up to date) | |
* execute[update homebrew from github] action run | |
- execute sudo -u john.shelley /usr/local/bin/brew update || true | |
* homebrewalt_cask[google-chrome] action cask (up to date) | |
* homebrewalt_cask[sourcetree] action cask (up to date) | |
* homebrewalt_cask[slack] action cask (up to date) | |
* package[git] action install (up to date) | |
* package[git-extras] action install (up to date) | |
* package[git-flow] action install (up to date) | |
* homebrewalt_cask[font-inconsolata] action cask (up to date) | |
Recipe: nodejs::default | |
* package[node] action install (up to date) | |
* nodejs_package[bower] action install | |
* execute[install NPM package bower] action run (skipped due to not_if) | |
Recipe: osxdefaults::set_terminal_profile | |
* template[/var/chef/cache/TomorrowNightEighties.terminal] action create (skipped due to not_if) | |
* execute[Load the terminal theme] action run (skipped due to not_if) | |
* execute[Wait a while] action run (skipped due to not_if) | |
* osxdefaults_defaults[Default Window Settings] action write (skipped due to not_if) | |
* osxdefaults_defaults[Startup Window Settings] action write (skipped due to not_if) | |
Recipe: applications::sublime_text_3 | |
* homebrewalt_cask[sublime-text3] action cask | |
* execute[installing cask sublime-text3] action run | |
================================================================================ | |
Error executing action `run` on resource 'execute[installing cask sublime-text3]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3 ---- | |
STDOUT: ==> Caveats | |
Cask sublime-text3 installs files under "/usr/local". The presence of such | |
files can cause warnings when running "brew doctor", which is considered | |
to be a bug in homebrew-cask. | |
==> Downloading http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203083.dmg | |
Already downloaded: /Library/Caches/Homebrew/sublime-text3-Build 3083.dmg | |
==> Symlinking App 'Sublime Text.app' to '/Applications/Sublime Text.app' | |
==> ln: /Applications/Sublime Text.app: Permission denied | |
STDERR: Error: Command failed to execute! | |
==> Failed command: | |
["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/sublime-text3/Build 3083/Sublime Text.app>", "#<Pathname:/Applications/Sublime Text.app>"] | |
==> Output of failed command: | |
==> Exit status of failed command: | |
#<Process::Status: pid 21602 exit 1> | |
---- End output of sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3 ---- | |
Ran sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3 returned 1 | |
Resource Declaration: | |
--------------------- | |
# In /opt/kitchenplan/vendor/cookbooks/homebrewalt/providers/cask.rb | |
16: execute "installing cask #{new_resource.name}" do | |
17: user node['current_user'] | |
18: command "sudo -u #{node['current_user']} /usr/local/bin/brew cask install --appdir=/Applications #{new_resource.name}" | |
19: not_if "sudo -u #{node['current_user']} /usr/local/bin/brew cask list | grep '^#{new_resource.name}$'" | |
20: end | |
21: new_resource.updated_by_last_action(true) | |
Compiled Resource: | |
------------------ | |
# Declared in /opt/kitchenplan/vendor/cookbooks/homebrewalt/providers/cask.rb:16:in `block in class_from_file' | |
execute("installing cask sublime-text3") do | |
action "run" | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
command "sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3" | |
backup 5 | |
returns 0 | |
user "john.shelley" | |
cookbook_name :applications | |
not_if "sudo -u john.shelley /usr/local/bin/brew cask list | grep '^sublime-text3$'" | |
end | |
Running handlers: | |
[2015-06-16T13:41:58-05:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2015-06-16T13:41:58-05:00] ERROR: Exception handlers complete | |
[2015-06-16T13:41:58-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
Chef Client failed. 11 resources updated in 14.483381 seconds | |
[2015-06-16T13:41:58-05:00] ERROR: execute[installing cask sublime-text3] (/opt/kitchenplan/vendor/cookbooks/homebrewalt/providers/cask.rb line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3 ---- | |
STDOUT: ==> Caveats | |
Cask sublime-text3 installs files under "/usr/local". The presence of such | |
files can cause warnings when running "brew doctor", which is considered | |
to be a bug in homebrew-cask. | |
==> Downloading http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203083.dmg | |
Already downloaded: /Library/Caches/Homebrew/sublime-text3-Build 3083.dmg | |
==> Symlinking App 'Sublime Text.app' to '/Applications/Sublime Text.app' | |
==> ln: /Applications/Sublime Text.app: Permission denied | |
STDERR: Error: Command failed to execute! | |
==> Failed command: | |
["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/sublime-text3/Build 3083/Sublime Text.app>", "#<Pathname:/Applications/Sublime Text.app>"] | |
==> Output of failed command: | |
==> Exit status of failed command: | |
#<Process::Status: pid 21602 exit 1> | |
---- End output of sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3 ---- | |
Ran sudo -u john.shelley /usr/local/bin/brew cask install --appdir=/Applications sublime-text3 returned 1 | |
[2015-06-16T13:41:59-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment