Giter Site home page Giter Site logo

sprout-wrap's Introduction

sprout-wrap

Build Status

Prerequisites

Download and install XCode or the XCode command line tools.

Installation

To provision your machine, open up Terminal and enter the following:

sudo xcodebuild -license
xcode-select --install
git clone https://github.com/pivotal-sprout/sprout-wrap.git
cd sprout-wrap
caffeinate ./sprout

The caffeinate command will keep your computer awake while installing; depending on your network connection, soloist can take from 10 minutes to 2 hours to complete.

Problems?

clang error

If you receive errors like this:

clang: error: unknown argument: '-multiply_definedsuppress'

then try downgrading those errors like this:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle

Command Line Tool Update Server

If you receive a message about the update server being unavailable and are on Mavericks, then you already have the command line tools.

Customization

This project uses soloist and librarian-chef to run a subset of the recipes in sprout's cookbooks.

Fork it to customize its attributes in soloistrc and the list of recipes you'd like to use for your team. You may also want to add other cookbooks to its Cheffile, perhaps one of the many community cookbooks. By default it configures an OS X Mavericks workstation for Ruby development.

Finally, if you've never used Chef before - we highly recommend you buy & watch this excellent 17 minute screencast by Ryan Bates.

Caveats

Homebrew

  • Homebrew cask has been integrated with Homebrew proper. If you are experiencing problems installing casks and have an older installation of Homebrew, running brew uninstall --force brew-cask; brew update should fix things.
  • If you are updating from an older version of sprout-wrap, your homebrew configuration in soloistrc might be under node_attributes.sprout.homebrew.formulae and node_attributes.sprout.homebrew.casks. These will need to be updated to node_attributes.homebrew.formulas (note the change from formulae to formulas) and node_attributes.homebrew.casks.

Roadmap

See Pivotal Tracker: https://www.pivotaltracker.com/s/projects/884116

Discussion List

Join [email protected] if you use Sprout.

References

sprout-wrap's People

Contributors

aramprice avatar charliebevis avatar codeword avatar cunnie avatar diasjorge avatar gambtho avatar hiremaga avatar idoru avatar lukewinikates avatar mark-rushakoff avatar miketheman avatar patcon avatar spilth avatar squeedee avatar uniservo1 avatar weilu avatar wendorf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sprout-wrap's Issues

Recipe: sprout-homebrew::cask dies on MBP Retina Mavericks

Recipe: sprout-homebrew::cask
  * execute[tap phinze/homebrew-cask] action run[2014-03-14T16:58:30-07:00] INFO: Processing execute[tap phinze/homebrew-cask] action run (sprout-homebrew::cask line 3)
 (skipped due to not_if)
  * package[brew-cask] action install[2014-03-14T16:58:30-07:00] INFO: Processing package[brew-cask] action install (sprout-homebrew::cask line 8)
 (up to date)
  * directory[/opt/homebrew-cask/Caskroom] action create[2014-03-14T16:58:30-07:00] INFO: Processing directory[/opt/homebrew-cask/Caskroom] action create (sprout-homebrew::cask line 10)
 (up to date)
  * directory[/opt/homebrew-cask] action create[2014-03-14T16:58:30-07:00] INFO: Processing directory[/opt/homebrew-cask] action create (sprout-homebrew::cask line 18)
 (up to date)
  * execute[update cask] action run[2014-03-14T16:58:30-07:00] INFO: Processing execute[update cask] action run (sprout-homebrew::cask line 22)
[2014-03-14T16:58:30-07:00] INFO: execute[update cask] ran successfully

    - execute /usr/local/bin/brew upgrade brew-cask || true

Recipe: <Dynamically Defined Resource>
  * execute[brew cask install bettertouchtool] action run[2014-03-14T16:58:30-07:00] INFO: Processing execute[brew cask install bettertouchtool] action run (/Users/lenny/workspace/sprout-wrap/cookbooks/sprout-homebrew/providers/cask.rb line 5)
==> Downloading http://www.boastr.de/BetterTouchTool.zip

================================================================================
Error executing action `run` on resource 'execute[brew cask install bettertouchtool]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of brew cask install --appdir="/Applications" bettertouchtool ----
STDOUT: ==> Downloading http://www.boastr.de/BetterTouchTool.zip
STDERR: Error: Download failed: http://www.boastr.de/BetterTouchTool.zip
---- End output of brew cask install --appdir="/Applications" bettertouchtool ----
Ran brew cask install --appdir="/Applications" bettertouchtool returned 1


Resource Declaration:
---------------------
# In /Users/lenny/workspace/sprout-wrap/cookbooks/sprout-homebrew/providers/cask.rb

  5:   execute "brew cask install #{package}" do
  6:     only_if "brew cask info #{package} | grep 'Not installed' > /dev/null 2>&1"
  7:     user node['current_user']
  8:     command "brew cask install #{new_resource.opts} #{package}"    
  9:   end
 10: 



Compiled Resource:
------------------
# Declared in /Users/lenny/workspace/sprout-wrap/cookbooks/sprout-homebrew/providers/cask.rb:5:in `block in class_from_file'

execute("brew cask install bettertouchtool") do
  action "run"
  retries 0
  retry_delay 2
  command "brew cask install --appdir=\"/Applications\" bettertouchtool"
  backup 5
  returns 0
  user "lenny"
  cookbook_name :"sprout-homebrew"
  only_if "brew cask info bettertouchtool | grep 'Not installed' > /dev/null 2>&1"
end

sprout can't find bundler (on macOS Sierra)

example output:

bixu ☛  caffeinate ./sprout
Successfully installed bundler-1.12.5
1 gem installed
Rubygems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Using awesome_print 1.6.1
Using builder 3.2.2
Using bundler 1.12.5
Using mixlib-config 2.2.1
Using mixlib-shellout 2.2.6
Using libyajl2 1.2.0
Using hashie 2.1.2
Using mixlib-log 1.6.0
Using rack 1.6.4
Using uuidtools 2.1.5
Using diff-lcs 1.2.5
Using erubis 2.7.0
Using highline 1.7.8
Using rspec-support 3.4.1
Using mixlib-cli 1.6.0
Using net-ssh 3.1.1
Using ffi 1.9.10
Using ipaddress 0.8.3
Using plist 3.1.0
Using systemu 2.6.5
Using wmi-lite 1.0.0
Using proxifier 1.0.3
Using multi_json 1.12.1
Using net-telnet 0.1.1
Using sfl 2.2
Using syslog-logger 1.6.8
Using thor 0.19.1
Using minitar 0.5.4
Using chef-config 12.8.1
Using ffi-yajl 2.2.3
Using rspec-core 3.4.4
Using rspec-expectations 3.4.0
Using rspec-mocks 3.4.1
Using net-ssh-gateway 1.2.0
Using net-scp 1.2.1
Using librarian 0.1.2
Using chef-zero 4.5.0
Using ohai 8.16.0
Using rspec_junit_formatter 0.2.3
Using rspec-its 1.2.0
Using mixlib-authentication 1.4.0
Using rspec 3.4.0
Using net-ssh-multi 1.2.1
Using specinfra 2.57.5
Using serverspec 2.36.0
Using chef 12.8.1
Using librarian-chef 0.0.4
Using soloist 1.0.3
Bundle complete! 3 Gemfile dependencies, 48 gems now installed.
Bundled gems are installed into ./vendor/bundle.
Installing chef_handler (1.4.0)
Installing windows (1.42.0)
Installing seven_zip (2.0.1)
Installing build-essential (3.2.0)
Installing dmg (2.4.0)
Installing homebrew (2.1.0)
Installing mingw (0.1.1)
Installing osx (0.1.0)
Installing sprout-base (0.5.0)
Installing sprout-git (0.2.1)
Installing sprout-homebrew (0.3.0)
Installing sprout-jetbrains-editors (0.1.0)
Installing sprout-mysql (0.1.0)
Installing sprout-osx-settings (0.1.0)
Installing sprout-osx-apps (0.2.0)
Installing sprout-postgresql (0.1.0)
Installing sprout-rbenv (0.1.0)
Installing sprout-ruby (0.1.0)
Installing sprout-ssh (0.1.0)
Installing sprout-terminal (0.1.0)
Password:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'bundler' (>= 1.10) among 55 total gem(s) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1209:in `block in activate_dependencies'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:in `each'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:in `activate_dependencies'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1180:in `activate'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in `gem'
    from /Users/irvin/smartb/sprout-wrap/vendor/bundle/ruby/2.0.0/bin/chef-solo:22:in `<main>'

Error executing action `run` on resource 'ruby_block[Check that homebrew is running & working]'

I always get this error when trying to use sprout-wrap. Xcode, xcode command line tools, rvm and homebrew have been installed, otherwise this is a completely clean install of Mavericks.

  - execute cd /usr/local; git clean -fd

  * ruby_block[Check that homebrew is running & working] action run[2014-05-25T09:44:52-07:00] INFO: Processing ruby_block[Check that homebrew is running & working] action run (sprout-base::homebrew line 36)
/Users/dan/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/dsl.rb:39:in `eval_gemfile': Gemfile syntax error compile error (Bundler::GemfileError)
on line 3: syntax error, unexpected ':', expecting $end
gem 'soloist', require: false
                       ^
    from /Users/dan/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/dsl.rb:10:in `evaluate'
    from /Users/dan/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/definition.rb:26:in `build'
    from /Users/dan/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:153:in `definition'
    from /Users/dan/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:116:in `setup'
    from /Users/dan/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/setup.rb:17

================================================================================
Error executing action `run` on resource 'ruby_block[Check that homebrew is running & working]'
================================================================================


RuntimeError
------------
Couldn't find brew


Cookbook Trace:
---------------
/Users/dan/code/sprout-wrap/cookbooks/sprout-base/recipes/homebrew.rb:40:in `block (2 levels) in from_file'


Resource Declaration:
---------------------
# In /Users/dan/code/sprout-wrap/cookbooks/sprout-base/recipes/homebrew.rb

 36: ruby_block "Check that homebrew is running & working" do
 37:   block do
 38:     `brew --version`
 39:     if $? != 0
 40:       raise "Couldn't find brew"
 41:     end
 42:   end
 43: end



Compiled Resource:
------------------
# Declared in /Users/dan/code/sprout-wrap/cookbooks/sprout-base/recipes/homebrew.rb:36:in `from_file'

ruby_block("Check that homebrew is running & working") do
  action "run"
  retries 0
  retry_delay 2
  block_name "Check that homebrew is running & working"
  cookbook_name :"sprout-base"
  recipe_name "homebrew"
  block #<Proc:0x00000105b63130@/Users/dan/code/sprout-wrap/cookbooks/sprout-base/recipes/homebrew.rb:37>
end



[2014-05-25T09:44:52-07:00] INFO: Running queued delayed notifications before re-raising exception
[2014-05-25T09:44:52-07:00] ERROR: Running exception handlers
[2014-05-25T09:44:52-07:00] ERROR: Exception handlers complete
[2014-05-25T09:44:52-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 21 resources updated
[2014-05-25T09:44:52-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Support for El Capitan?

I have tried to get this running on a new computer with El Capitan.

I keep getting an error.

Any suggestions?

[2016-01-27T17:34:10-05:00] INFO: Starting Chef Run for C02QQ1AFFVH8.local
[2016-01-27T17:34:10-05:00] INFO: Running start handlers
[2016-01-27T17:34:10-05:00] INFO: Start handlers complete.
Compiling Cookbooks...
"/Users/leonardbogdonoff"
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for directory[/var/chef/cache] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous directory[/var/chef/cache]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/recipes/var_chef_cache.rb:3:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  directory[/var/chef/cache]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/recipes/homebrew.rb:11:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Doing cask ccmenu
[2016-01-27T17:34:10-05:00] WARN: Doing cask firefox
[2016-01-27T17:34:10-05:00] WARN: Doing cask flycut
[2016-01-27T17:34:10-05:00] WARN: Doing cask rowanj-gitx
[2016-01-27T17:34:10-05:00] WARN: Doing cask github
[2016-01-27T17:34:10-05:00] WARN: Doing cask google-chrome
[2016-01-27T17:34:10-05:00] WARN: Doing cask google-drive
[2016-01-27T17:34:10-05:00] WARN: Doing cask google-hangouts
[2016-01-27T17:34:10-05:00] WARN: Doing cask macvim
[2016-01-27T17:34:10-05:00] WARN: Doing cask skype
[2016-01-27T17:34:10-05:00] WARN: Doing cask textmate
[2016-01-27T17:34:10-05:00] WARN: Doing cask vagrant
[2016-01-27T17:34:10-05:00] WARN: Doing cask virtualbox
[2016-01-27T17:34:10-05:00] WARN: Doing cask xquartz
[2016-01-27T17:34:10-05:00] WARN: Doing cask xscope
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula ctags-exuberant
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula ag
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula chromedriver
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula imagemagick
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula node
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula pstree
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula qt
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula ssh-copy-id
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula tmux
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula tree
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula watch
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula wget
[2016-01-27T17:34:10-05:00] WARN: Doing homebrew formula rbenv-binstubs
[2016-01-27T17:34:10-05:00] WARN:  The 'sprout-terminal' cookbook works inconsistently while Terminal is running
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for homebrew_package[git] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous homebrew_package[git]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/homebrew/recipes/default.rb:41:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  homebrew_package[git]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-git/recipes/install.rb:3:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for directory[/Users/leonardbogdonoff/workspace] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous directory[/Users/leonardbogdonoff/workspace]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/recipes/workspace_directory.rb:1:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  directory[/Users/leonardbogdonoff/workspace]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-git/recipes/projects.rb:23:in `block in from_file'
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for directory[/Users/leonardbogdonoff/Library/LaunchAgents] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous directory[/Users/leonardbogdonoff/Library/LaunchAgents]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-homebrew/recipes/launchctl.rb:3:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  directory[/Users/leonardbogdonoff/Library/LaunchAgents]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-mysql/recipes/install.rb:14:in `block in from_file'
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for directory[/Users/leonardbogdonoff/Library/LaunchAgents] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous directory[/Users/leonardbogdonoff/Library/LaunchAgents]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-mysql/recipes/install.rb:14:in `block in from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  directory[/Users/leonardbogdonoff/Library/LaunchAgents]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-postgresql/recipes/add_launch_agent.rb:4:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for directory[/var/chef/cache] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous directory[/var/chef/cache]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/recipes/homebrew.rb:11:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  directory[/var/chef/cache]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-osx-apps/recipes/textmate.rb:7:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Cloning resource attributes for execute[link textmate] from prior resource (CHEF-3694)
[2016-01-27T17:34:10-05:00] WARN: Previous execute[link textmate]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-osx-apps/recipes/textmate.rb:26:in `from_file'
[2016-01-27T17:34:10-05:00] WARN: Current  execute[link textmate]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-osx-apps/recipes/textmate.rb:38:in `from_file'
Converging 196 resources
Recipe: sprout-base::var_chef_cache
  * directory[/var/chef/cache] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/var/chef/cache] action create (sprout-base::var_chef_cache line 3)
[2016-01-27T17:34:11-05:00] INFO: directory[/var/chef/cache] group changed to 80
[2016-01-27T17:34:11-05:00] INFO: directory[/var/chef/cache] mode changed to 777

    - change mode from '0775' to '0777'
    - change group from 'staff' to 'admin'
Recipe: sprout-base::bash_it
  * git[/var/chef/cache/bash_it] action sync[2016-01-27T17:34:11-05:00] INFO: Processing git[/var/chef/cache/bash_it] action sync (sprout-base::bash_it line 3)
 (up to date)
  * directory[/Users/leonardbogdonoff/.bash_it] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/Users/leonardbogdonoff/.bash_it] action create (sprout-base::bash_it line 10)
[2016-01-27T17:34:11-05:00] INFO: directory[/Users/leonardbogdonoff/.bash_it] mode changed to 777

    - change mode from '0755' to '0777'
  * execute[Copying bash-it's .git to /Users/leonardbogdonoff/.bash_it] action run[2016-01-27T17:34:11-05:00] INFO: Processing execute[Copying bash-it's .git to /Users/leonardbogdonoff/.bash_it] action run (sprout-base::bash_it line 15)
[2016-01-27T17:34:11-05:00] INFO: execute[Copying bash-it's .git to /Users/leonardbogdonoff/.bash_it] ran successfully

    - execute rsync -axSH /var/chef/cache/bash_it/ /Users/leonardbogdonoff/.bash_it
  * template[/Users/leonardbogdonoff/.bash_profile] action create[2016-01-27T17:34:11-05:00] INFO: Processing template[/Users/leonardbogdonoff/.bash_profile] action create (sprout-base::bash_it line 20)
 (up to date)
  * sprout_base_bash_it_enable_feature[aliases/general] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_enable_feature[aliases/general] action create (sprout-base::bash_it line 29)
 (up to date)
  * directory[/Users/leonardbogdonoff/.bash_it/aliases/enabled] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/Users/leonardbogdonoff/.bash_it/aliases/enabled] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 15)
 (skipped due to not_if)
  * link[/Users/leonardbogdonoff/.bash_it/aliases/enabled/general.aliases.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing link[/Users/leonardbogdonoff/.bash_it/aliases/enabled/general.aliases.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 21)
 (skipped due to not_if)
  * sprout_base_bash_it_enable_feature[completion/defaults] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_enable_feature[completion/defaults] action create (sprout-base::bash_it line 29)
 (up to date)
  * directory[/Users/leonardbogdonoff/.bash_it/completion/enabled] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/Users/leonardbogdonoff/.bash_it/completion/enabled] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 15)
 (skipped due to not_if)
  * link[/Users/leonardbogdonoff/.bash_it/completion/enabled/defaults.completion.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing link[/Users/leonardbogdonoff/.bash_it/completion/enabled/defaults.completion.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 21)
 (skipped due to not_if)
  * sprout_base_bash_it_enable_feature[completion/git] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_enable_feature[completion/git] action create (sprout-base::bash_it line 29)
[2016-01-27T17:34:11-05:00] WARN: Cloning resource attributes for directory[/Users/leonardbogdonoff/.bash_it/completion/enabled] from prior resource (CHEF-3694)
[2016-01-27T17:34:11-05:00] WARN: Previous directory[/Users/leonardbogdonoff/.bash_it/completion/enabled]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb:15:in `block in class_from_file'
[2016-01-27T17:34:11-05:00] WARN: Current  directory[/Users/leonardbogdonoff/.bash_it/completion/enabled]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb:15:in `block in class_from_file'
 (up to date)
  * directory[/Users/leonardbogdonoff/.bash_it/completion/enabled] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/Users/leonardbogdonoff/.bash_it/completion/enabled] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 15)
 (skipped due to not_if)
  * link[/Users/leonardbogdonoff/.bash_it/completion/enabled/git.completion.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing link[/Users/leonardbogdonoff/.bash_it/completion/enabled/git.completion.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 21)
 (skipped due to not_if)
  * sprout_base_bash_it_enable_feature[plugins/ssh] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_enable_feature[plugins/ssh] action create (sprout-base::bash_it line 29)
 (up to date)
  * directory[/Users/leonardbogdonoff/.bash_it/plugins/enabled] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/Users/leonardbogdonoff/.bash_it/plugins/enabled] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 15)
 (skipped due to not_if)
  * link[/Users/leonardbogdonoff/.bash_it/plugins/enabled/ssh.plugin.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing link[/Users/leonardbogdonoff/.bash_it/plugins/enabled/ssh.plugin.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_enable_feature.rb line 21)
 (skipped due to not_if)
  * sprout_base_bash_it_custom_plugin[bash_it/custom/disable_ctrl-s_output_control.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_custom_plugin[bash_it/custom/disable_ctrl-s_output_control.bash] action create (sprout-base::bash_it line 35)
 (up to date)
  * template[/Users/leonardbogdonoff/.bash_it/custom/disable_ctrl-s_output_control.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing template[/Users/leonardbogdonoff/.bash_it/custom/disable_ctrl-s_output_control.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_custom_plugin.rb line 5)
 (up to date)
  * sprout_base_bash_it_custom_plugin[bash_it/custom/enable_ctrl-o_history_execution.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_custom_plugin[bash_it/custom/enable_ctrl-o_history_execution.bash] action create (sprout-base::bash_it line 35)
 (up to date)
  * template[/Users/leonardbogdonoff/.bash_it/custom/enable_ctrl-o_history_execution.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing template[/Users/leonardbogdonoff/.bash_it/custom/enable_ctrl-o_history_execution.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_custom_plugin.rb line 5)
 (up to date)
  * sprout_base_bash_it_custom_plugin[bash_it/custom/ensure_usr_local_bin_first.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_custom_plugin[bash_it/custom/ensure_usr_local_bin_first.bash] action create (sprout-base::bash_it line 35)
 (up to date)
  * template[/Users/leonardbogdonoff/.bash_it/custom/ensure_usr_local_bin_first.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing template[/Users/leonardbogdonoff/.bash_it/custom/ensure_usr_local_bin_first.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_custom_plugin.rb line 5)
 (up to date)
  * sprout_base_bash_it_custom_plugin[bash_it/custom/add_user_initials_to_git_prompt_info.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing sprout_base_bash_it_custom_plugin[bash_it/custom/add_user_initials_to_git_prompt_info.bash] action create (sprout-base::bash_it line 35)
 (up to date)
  * template[/Users/leonardbogdonoff/.bash_it/custom/add_user_initials_to_git_prompt_info.bash] action create[2016-01-27T17:34:11-05:00] INFO: Processing template[/Users/leonardbogdonoff/.bash_it/custom/add_user_initials_to_git_prompt_info.bash] action create (/Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-base/providers/bash_it_custom_plugin.rb line 5)
 (up to date)
Recipe: sprout-base::user_owns_usr_local
  * directory[/usr/local/bin] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/usr/local/bin] action create (sprout-base::user_owns_usr_local line 1)
 (up to date)
  * execute[your current user owns /usr/local] action run[2016-01-27T17:34:11-05:00] INFO: Processing execute[your current user owns /usr/local] action run (sprout-base::user_owns_usr_local line 6)
[2016-01-27T17:34:11-05:00] INFO: execute[your current user owns /usr/local] ran successfully

    - execute chown -R leonardbogdonoff /usr/local
Recipe: sprout-base::homebrew
  * directory[/var/chef/cache] action create[2016-01-27T17:34:11-05:00] INFO: Processing directory[/var/chef/cache] action create (sprout-base::homebrew line 11)
[2016-01-27T17:34:11-05:00] INFO: directory[/var/chef/cache] group changed to 20
[2016-01-27T17:34:11-05:00] INFO: directory[/var/chef/cache] mode changed to 775

    - change mode from '0777' to '0775'
    - change group from 'admin' to 'staff'
  * git[/var/chef/cache/homebrew] action sync[2016-01-27T17:34:11-05:00] INFO: Processing git[/var/chef/cache/homebrew] action sync (sprout-base::homebrew line 19)
 (up to date)
  * execute[Copying homebrew's .git to /usr/local] action run[2016-01-27T17:34:12-05:00] INFO: Processing execute[Copying homebrew's .git to /usr/local] action run (sprout-base::homebrew line 26)
[2016-01-27T17:34:12-05:00] INFO: execute[Copying homebrew's .git to /usr/local] ran successfully

    - execute rsync -axSH /var/chef/cache/homebrew/ /usr/local/
  * execute[Run git clean in /usr/local to clear out cruft after rsync] action run[2016-01-27T17:34:12-05:00] INFO: Processing execute[Run git clean in /usr/local to clear out cruft after rsync] action run (sprout-base::homebrew line 31)
[2016-01-27T17:34:12-05:00] INFO: execute[Run git clean in /usr/local to clear out cruft after rsync] ran successfully

    - execute cd /usr/local; git clean -fd
  * ruby_block[Check that homebrew is running & working] action run[2016-01-27T17:34:12-05:00] INFO: Processing ruby_block[Check that homebrew is running & working] action run (sprout-base::homebrew line 36)
[2016-01-27T17:34:13-05:00] INFO: ruby_block[Check that homebrew is running & working] called

    - execute the ruby block Check that homebrew is running & working
  * directory[/usr/local/sbin] action create[2016-01-27T17:34:13-05:00] INFO: Processing directory[/usr/local/sbin] action create (sprout-base::homebrew line 45)
 (up to date)
  * directory[/Users/leonardbogdonoff/Applications] action create[2016-01-27T17:34:13-05:00] INFO: Processing directory[/Users/leonardbogdonoff/Applications] action create (sprout-base::homebrew line 49)
 (up to date)
Recipe: homebrew::default
  * remote_file[/var/chef/cache/homebrew_go] action create[2016-01-27T17:34:13-05:00] INFO: Processing remote_file[/var/chef/cache/homebrew_go] action create (homebrew::default line 29)
 (up to date)
  * execute[install homebrew] action run[2016-01-27T17:34:13-05:00] INFO: Processing execute[install homebrew] action run (homebrew::default line 34)
 (skipped due to not_if)
  * homebrew_package[git] action install[2016-01-27T17:34:13-05:00] INFO: Processing homebrew_package[git] action install (homebrew::default line 41)
 (skipped due to not_if)
  * execute[update homebrew from github] action run[2016-01-27T17:34:13-05:00] INFO: Processing execute[update homebrew from github] action run (homebrew::default line 45)
Updated Homebrew from b73e1a4 to 84d29a1.
No changes to formulae.
[2016-01-27T17:34:15-05:00] INFO: execute[update homebrew from github] ran successfully

    - execute /usr/local/bin/brew update || true
Recipe: sprout-homebrew::casks
  * sprout_homebrew_cask[ccmenu] action install[2016-01-27T17:34:15-05:00] INFO: Processing sprout_homebrew_cask[ccmenu] action install (sprout-homebrew::casks line 7)
[2016-01-27T17:34:15-05:00] WARN: Cloning resource attributes for homebrew_package[caskroom/cask/brew-cask] from prior resource (CHEF-3694)
[2016-01-27T17:34:15-05:00] WARN: Previous homebrew_package[caskroom/cask/brew-cask]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-homebrew/recipes/cask.rb:13:in `from_file'
[2016-01-27T17:34:15-05:00] WARN: Current  homebrew_package[caskroom/cask/brew-cask]: /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-homebrew/recipes/cask.rb:15:in `from_file'


Recipe: sprout-homebrew::cask
  * directory[/usr/local/Library/Taps] action create[2016-01-27T17:34:15-05:00] INFO: Processing directory[/usr/local/Library/Taps] action create (sprout-homebrew::cask line 3)
 (up to date)
  * execute[tap cask] action run[2016-01-27T17:34:15-05:00] INFO: Processing execute[tap cask] action run (sprout-homebrew::cask line 8)
Warning: Tap caskroom/cask already tapped.
[2016-01-27T17:34:15-05:00] INFO: execute[tap cask] ran successfully

    - execute brew tap "caskroom/homebrew-cask"
  * homebrew_package[caskroom/cask/brew-cask] action install[2016-01-27T17:34:15-05:00] INFO: Processing homebrew_package[caskroom/cask/brew-cask] action install (sprout-homebrew::cask line 13)
Error: HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!


    ================================================================================
    Error executing action `install` on resource 'homebrew_package[caskroom/cask/brew-cask]'
    ================================================================================

    SystemExit
    ----------
    exit

    Cookbook Trace:
    ---------------
    /Users/leonardbogdonoff/sprout-wrap/cookbooks/homebrew/libraries/homebrew_package.rb:94:in `require'
    /Users/leonardbogdonoff/sprout-wrap/cookbooks/homebrew/libraries/homebrew_package.rb:94:in `get_version_from_formula'
    /Users/leonardbogdonoff/sprout-wrap/cookbooks/homebrew/libraries/homebrew_package.rb:74:in `current_installed_version'
    /Users/leonardbogdonoff/sprout-wrap/cookbooks/homebrew/libraries/homebrew_package.rb:44:in `load_current_resource'

    Resource Declaration:
    ---------------------
    # In /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-homebrew/recipes/cask.rb

     13: package 'caskroom/cask/brew-cask'
     14: 

    Compiled Resource:
    ------------------
    # Declared in /Users/leonardbogdonoff/sprout-wrap/cookbooks/sprout-homebrew/recipes/cask.rb:13:in `from_file'

    homebrew_package("caskroom/cask/brew-cask") do
      action [:install]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      package_name "caskroom/cask/brew-cask"
      declared_type :package
      cookbook_name :"sprout-homebrew"
      recipe_name "cask"
    end

[2016-01-27T17:34:15-05:00] INFO: Running queued delayed notifications before re-raising exception

Running handlers:
[2016-01-27T17:34:15-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-27T17:34:15-05:00] ERROR: Exception handlers complete
Chef Client failed. 11 resources updated in 8.250292 seconds
[2016-01-27T17:34:15-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-01-27T17:34:15-05:00] ERROR: homebrew_package[caskroom/cask/brew-cask] (sprout-homebrew::cask line 13) had an error: SystemExit: exit
[2016-01-27T17:34:15-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Several DMG's not attached on Mavericks

I'm installing sprout-wrap on a fresh OSX Mavericks. The following recipes required me to re-run the hdiutil attach manually command to attach the DMG and then re-run soloist before it worked.

The following recipes required this:

ccmenu
xquartz
keycastr
JavaForOSX.

Same thing happened on 3 new Mavericks laptops.

After I ran hdiutil it seemed to work, and from the log from the first time when it errored out it seemed that it at least attempted to run hdiutil and no errors were displayed - but it clearly didn't work because when sproutwrap aborted the DMG wasn't attached and the subsequent command (trying to install / copy the file) failed.

Here is the output and Stack Trace for CCMenu (below), but the same thing happened for all 4 recipes:

Recipe: sprout-osx-apps::ccmenu
  * dmg_package[CCMenu] action install[2014-02-03T12:26:57-08:00] INFO: Processing dmg_package[CCMenu] action install (sprout-osx-apps::ccmenu line 5)
Recipe: <Dynamically Defined Resource>
  * remote_file[/var/chef/cache/CCMenu.dmg - CCMenu] action create[2014-02-03T12:26:57-08:00] INFO: Processing remote_file[/var/chef/cache/CCMenu.dmg - CCMenu] action create (/Users/gal/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 37)
[2014-02-03T12:26:57-08:00] INFO: remote_file[/var/chef/cache/CCMenu.dmg - CCMenu] created file /var/chef/cache/CCMenu.dmg

    - create new file /var/chef/cache/CCMenu.dmg[2014-02-03T12:26:59-08:00] INFO: remote_file[/var/chef/cache/CCMenu.dmg - CCMenu] updated file contents /var/chef/cache/CCMenu.dmg

    - update content in file /var/chef/cache/CCMenu.dmg from none to 7cbdc6
        (new content is binary, diff output suppressed)

  * ruby_block[attach /var/chef/cache/CCMenu.dmg] action run[2014-02-03T12:26:59-08:00] INFO: Processing ruby_block[attach /var/chef/cache/CCMenu.dmg] action run (/Users/gal/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 45)
 hdiutil attach  '/var/chef/cache/CCMenu.dmg'
[2014-02-03T12:26:59-08:00] INFO: ruby_block[attach /var/chef/cache/CCMenu.dmg] called

    - execute the ruby block attach /var/chef/cache/CCMenu.dmg

  * execute[rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications'] action run[2014-02-03T12:26:59-08:00] INFO: Processing execute[rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications'] action run (/Users/gal/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 57)

================================================================================
Error executing action `run` on resource 'execute[rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications']'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '23'
---- Begin output of rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications' ----
STDOUT: 
STDERR: rsync: link_stat "/Volumes/CCMenu/CCMenu.app" failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
---- End output of rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications' ----
Ran rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications' returned 23


Resource Declaration:
---------------------
# In /Users/gal/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb

 57:       execute "rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/#{volumes_dir}/#{new_resource.app}.app' '#{new_resource.destination}'" do
 58:         user new_resource.owner if new_resource.owner
 59:       end
 60: 



Compiled Resource:
------------------
# Declared in /Users/gal/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb:57:in `block in class_from_file'

execute("rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications'") do
  action "run"
  retries 0
  retry_delay 2
  command "rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications'"
  backup 5
  returns 0
  user "gal"
  cookbook_name :"sprout-osx-apps"
end



[2014-02-03T12:26:59-08:00] INFO: Running queued delayed notifications before re-raising exception

================================================================================
Error executing action `install` on resource 'dmg_package[CCMenu]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications'] (/Users/gal/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 57) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '23'
---- Begin output of rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications' ----
STDOUT: 
STDERR: rsync: link_stat "/Volumes/CCMenu/CCMenu.app" failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
---- End output of rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications' ----
Ran rsync --force --recursive --links --perms --executability --owner --group --times '/Volumes/CCMenu/CCMenu.app' '/Applications' returned 23


Resource Declaration:
---------------------
# In /Users/gal/workspace/sprout-wrap/cookbooks/sprout-osx-apps/recipes/ccmenu.rb

  5: dmg_package "CCMenu" do
  6:   volumes_dir "CCMenu"
  7:   source "http://iweb.dl.sourceforge.net/project/ccmenu/CCMenu/1.5/ccmenu-1.5-b.dmg"
  8:   checksum "7cbdc6b3ff477fe420ab121e0892e0aebc48b1a9620aacfb6324932900d6b6cc"
  9:   owner node['current_user']
 10:   action :install
 11: end
 12: 



Compiled Resource:
------------------
# Declared in /Users/gal/workspace/sprout-wrap/cookbooks/sprout-osx-apps/recipes/ccmenu.rb:5:in `from_file'

dmg_package("CCMenu") do
  action [:install]
  updated true
  updated_by_last_action true
  retries 0
  retry_delay 2
  cookbook_name :"sprout-osx-apps"
  recipe_name "ccmenu"
  source "http://iweb.dl.sourceforge.net/project/ccmenu/CCMenu/1.5/ccmenu-1.5-b.dmg"
  volumes_dir "CCMenu"
  checksum "7cbdc6b3ff477fe420ab121e0892e0aebc48b1a9620aacfb6324932900d6b6cc"
  type "app"
  owner "gal"
  app "CCMenu"
  destination "/Applications"
end



[2014-02-03T12:26:59-08:00] INFO: Running queued delayed notifications before re-raising exception
[2014-02-03T12:26:59-08:00] ERROR: Running exception handlers
[2014-02-03T12:26:59-08:00] ERROR: Exception handlers complete
[2014-02-03T12:26:59-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 114 resources updated
[2014-02-03T12:26:59-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
00662L:sprout-wrap gal$

Then I run hdutil manually, which works:

○ → hdiutil attach  /var/chef/cache/CCMenu.dmg
Checksumming whole disk (Apple_HFS : 0)…
............................................................................................................................................................................
          whole disk (Apple_HFS : 0): verified   CRC32 $A938525D
verified   CRC32 $A6082F24
/dev/disk4                                              /Volumes/CCMenu

 |1.9.3-p448| 00662L in ~

And then re-run soloist and then it passes.

iterm on 10.12.3

I'm getting this error on a new install of OS 10.12.3

STDOUT: ==> Satisfying dependencies
complete
==> Downloading https://iterm2.com/downloads/stable/iTerm2-3_0_14.zip
Already downloaded: /Users/rclutton/Library/Caches/Homebrew/Cask/iterm2--3.0.14.zip
==> Verifying checksum for Cask iterm2
STDERR: Warning: The default Caskroom location has moved to /usr/local/Caskroom.

Please migrate your Casks to the new location and delete /opt/homebrew-cask/Caskroom,
or if you would like to keep your Caskroom at /opt/homebrew-cask/Caskroom, add the
following to your HOMEBREW_CASK_OPTS:

  --caskroom=/opt/homebrew-cask/Caskroom

For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913.
Error: It seems there is already an App at '/Applications/iTerm.app'.
Error: nothing to install
---- End output of /usr/local/bin/brew cask install iterm2  ----
Ran /usr/local/bin/brew cask install iterm2  returned 1
[2017-03-22T18:14:23+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)```

Create a bootstrap script

It would really helpful if a script like the one for Boxen Web existed so that a user could kickstart the process similar to how Boxen (via Boxen Web) or Homebrew works with just executing a cURL'ed script.

Default to chruby

This is a request for opinions. In my understanding, people are now preferring chruby over rbenv, and I would like to make our defaults better.

Additionally, it looks like the rbenv cookbook may not be working as well as we'd like: pivotal-sprout/sprout-rbenv#6

Thoughts?

sprout-osx-apps::virtualbox requires opscode-cookbooks/dmg >= 2.0.5

When I add sprout-osx-apps::virtualbox to my soloistrc I get this error when converging...

 ================================================================================                                                     
 Error executing action `install` on resource 'dmg_package[VirtualBox]'
 ================================================================================


 NameError
 ---------
 uninitialized constant Chef::Version::Platform


 Cookbook Trace:
 ---------------
 /Users/mavenlink/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb:66:in `class_from_file'
 /Users/mavenlink/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb:64:in `class_from_file'


 Resource Declaration:
 ---------------------
 # In /Users/mavenlink/workspace/sprout-wrap/cookbooks/sprout-osx-apps/recipes/virtualbox.rb

   3: dmg_package "VirtualBox" do
   4:   source dmg_properties['source']
   5:   checksum dmg_properties['checksum']
   6:   action :install
   7:   owner node['current_user']
   8:   type "pkg"
   9:   package_id "org.virtualbox.pkg.virtualbox"
  10: end

I have managed to work-around with this patch: https://github.com/mavenlink-cookbooks/sprout-wrap/commit/51710a036dba3e1a8b9de32ec65afaf86bfe05c4

But I am not sure if that is the conventional approach for declaring version dependencies with Cheffile. Should it be declared in the original sprout-wrap repo, or possibly in the parent sprout repos cookbooks?

soloist blowing up

[2013-10-02T16:43:34-04:00] INFO: Running queued delayed notifications before re-raising exception
[2013-10-02T16:43:34-04:00] ERROR: Running exception handlers
[2013-10-02T16:43:34-04:00] ERROR: Exception handlers complete
Chef Client failed. 30 resources updated
[2013-10-02T16:43:34-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-10-02T16:43:34-04:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[brew install http://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb](pivotal_workstation::apple_gcc42 line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of brew install http://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb ----
STDOUT: Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg
STDERR: Warning: It appears you have MacPorts or Fink installed.
Error: Download failed: http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg
---- End output of brew install http://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb ----
Ran brew install http://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb returned 1

Instructions should be more vehement about not using 'sudo' to run bundle.

I hit the issue where home-brew couldn't be properly detected too, and I think the source of confusion on my part was bullet point "4" of README.md.

It says "you shouldn't sudo bundle if you're running under rbenv" -- but as a new user of sprout-wrap, I don't KNOW that one of the things that's going to happen is that my pristine mac is going to have rbenv and rubymine installed on it.

I got myself into a pickle where I was picking up the wrong ruby - because I had gotten sufficiently far into the soloist exec that the ruby had changed, I think.

I had to eventually blow away my sprout-wrap working copy, clone a new one, and go from there. It worked, once I figured out that I had screwed up a bit and was interacting with an interpreter other than what I expected.

Instructions should be made more specific -- do not run 'sudo bundle' unless you know what you're doing. And, in general, err on the side of caution -- if something doesn't NEED sudo, don't use it. :)

Exception on fresh Mavericks

Pacts-iMac:pact-workstation pact$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): found a tab character that violates indentation while scanning a plain scalar at line 65 column 13 (Psych::SyntaxError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'
    from /Library/Ruby/Gems/2.0.0/gems/soloist-1.0.1/lib/soloist/royal_crown.rb:44:in `read_config'
    from /Library/Ruby/Gems/2.0.0/gems/soloist-1.0.1/lib/soloist/royal_crown.rb:39:in `from_file'
    from /Library/Ruby/Gems/2.0.0/gems/soloist-1.0.1/lib/soloist/config.rb:10:in `from_file'
    from /Library/Ruby/Gems/2.0.0/gems/soloist-1.0.1/lib/soloist/cli.rb:46:in `soloist_config'
    from /Library/Ruby/Gems/2.0.0/gems/soloist-1.0.1/lib/soloist/cli.rb:17:in `chef'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/soloist-1.0.1/bin/soloist:4:in `<top (required)>'
    from /usr/bin/soloist:23:in `load'
    from /usr/bin/soloist:23:in `<main>'

Macvim on 10.12.3

I'm getting this error on new install of OX 10.12.3

STDOUT: ==> Satisfying dependencies
complete
==> Downloading https://github.com/macvim-dev/macvim/releases/download/snapshot-128/MacVim.dmg
Already downloaded: /Users/rclutton/Library/Caches/Homebrew/Cask/macvim--8.0.128.dmg
==> Verifying checksum for Cask macvim
==> Moving App 'MacVim.app' to '/Applications/MacVim.app'
==> Removing App: '/Applications/MacVim.app'
STDERR: Warning: The default Caskroom location has moved to /usr/local/Caskroom.

Please migrate your Casks to the new location and delete /opt/homebrew-cask/Caskroom,
or if you would like to keep your Caskroom at /opt/homebrew-cask/Caskroom, add the
following to your HOMEBREW_CASK_OPTS:

  --caskroom=/opt/homebrew-cask/Caskroom

For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913.
Error: It seems the symlink source is not there: '/opt/homebrew-cask/Caskroom/macvim/8.0.128/mvim'
Error: nothing to install
---- End output of /usr/local/bin/brew cask install macvim  ----
Ran /usr/local/bin/brew cask install macvim  returned 1
[2017-03-22T18:12:25+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)```

TravisCI build failure: uninitialized constant FoodCritic::Ripper (NameError)

Heya,

Have you guys been able to figure out what changed that caused the build to start failing about 28 days ago?

https://travis-ci.org/mavenlink-cookbooks/sprout-wrap/builds/15373153
https://travis-ci.org/pivotal-sprout/sprout-wrap/builds/14579518

Both pivotal-sprout / sprout-wrap and mavenlink-cookbooks / sprout-wrap are failing in the exact same way (and in my case, the diff of the build was just adding an additional brew package ( https://github.com/mavenlink-cookbooks/sprout-wrap/compare/07e1dcba51b2...c2387c822432 )

It is very odd that both projects would fail like this...

Install universal-ctags instead of ctags-exuberant

ctags-exuberant hasn't been updated in a couple of years, and has effectively been replaced by universal-ctags. We should tap universal-ctags/universal-ctags and install the HEAD version. We'll have to update our homebrew cookbook version to do this.

Homebrew recipe fails with sudo error (MacOS Sierra)

Hi guys!

I have a fresh install of Sierra here and tried to run sprout-wrap. First problem I ran into was that homebrew did not install (see below). I hand-installed homebrew and got past this problem (but ran into another error - will post that one separately)

  * execute[install homebrew] action run[2016-10-16T16:27:46-07:00] INFO: Processing execute[install homebrew] action run (homebrew::default line 39)

    [execute] ==> This script will install:
              /usr/local/bin/brew
              /usr/local/share/doc/homebrew
              /usr/local/share/man/man1/brew.1
              /usr/local/share/zsh/site-functions/_brew
              /usr/local/etc/bash_completion.d/brew
              /usr/local/Homebrew
              ==> The following new directories will be created:
              /usr/local/Cellar
              /usr/local/Homebrew
              /usr/local/Frameworks
              /usr/local/bin
              /usr/local/etc
              /usr/local/include
              /usr/local/lib
              /usr/local/opt
              /usr/local/sbin
              /usr/local/share
              /usr/local/share/zsh
              /usr/local/share/zsh/site-functions
              /usr/local/var
              ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
              sudo: no tty present and no askpass program specified
              Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

    ================================================================================
    Error executing action `run` on resource 'execute[install homebrew]'
    ================================================================================

chef 12.9.x doesn't support system ruby

chef 12.9.38 was released today, and drops support for Ruby 2.0.x, which means that El Capitan's system ruby won't work.

This also means that all of our cookbooks that don't have a Gemfile.lock will start failing. @hiremaga @aramprice have any thoughts about this? My first idea is a pivotal-sprout gem that is nothing but a gemspec to keep us on chef 12.8.x.

sprout-wrap not compatible with ruby 2?

~/sprout-wrap (master ✓) which ruby
/usr/local/bin/ruby
~/sprout-wrap (master ✓) ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0]

~/sprout-wrap (master ✓) bundle exec soloist
Installing dmg (1.1.0)
Installing osx (0.1.0)
Installing sprout-osx-base (0.1.0)
Installing sprout-osx-apps (0.1.0)
Installing sprout-osx-settings (0.1.0)
Installing sprout-pivotal (0.1.0)
Installing pivotal_workstation (1.0.0)
Installing meta (0.1.0)
/Library/Ruby/Gems/1.8/gems/yajl-ruby-1.1.0/lib/yajl/yajl.bundle: [BUG] Segmentation fault
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.

-- Control frame information -----------------------------------------------
c:0049 p:-17568659170484 s:0251 e:000250 TOP [FINISH]
c:0048 p:---- s:0249 e:000248 CFUNC :require
c:0047 p:0104 s:0245 e:000244 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0046 p:0007 s:0235 e:000234 TOP /Library/Ruby/Gems/1.8/gems/yajl-ruby-1.1.0/lib/yajl.rb:1 [FINISH]
c:0045 p:---- s:0233 e:000232 CFUNC :require
c:0044 p:0104 s:0229 e:000228 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0043 p:0015 s:0219 e:000218 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/json_compat.rb:21 [FINISH]
c:0042 p:---- s:0217 e:000216 CFUNC :require
c:0041 p:0104 s:0213 e:000212 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0040 p:0031 s:0203 e:000202 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/rest.rb:26 [FINISH]
c:0039 p:---- s:0201 e:000200 CFUNC :require
c:0038 p:0104 s:0197 e:000196 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0037 p:0023 s:0187 e:000186 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/search/query.rb:21 [FINISH]
c:0036 p:---- s:0185 e:000184 CFUNC :require
c:0035 p:0104 s:0181 e:000180 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0034 p:0007 s:0171 e:000170 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/dsl/data_query.rb:19 [FINISH]
c:0033 p:---- s:0169 e:000168 CFUNC :require
c:0032 p:0104 s:0165 e:000164 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0031 p:0015 s:0155 e:000154 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/mixin/language.rb:20 [FINISH]
c:0030 p:---- s:0153 e:000152 CFUNC :require
c:0029 p:0104 s:0149 e:000148 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0028 p:0017 s:0139 e:000138 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/dsl/platform_introspection.rb:217 [FINISH]
c:0027 p:---- s:0137 e:000136 CFUNC :require
c:0026 p:0104 s:0133 e:000132 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0025 p:0015 s:0123 e:000122 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/resource.rb:21 [FINISH]
c:0024 p:---- s:0121 e:000120 CFUNC :require
c:0023 p:0104 s:0117 e:000116 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0022 p:0007 s:0107 e:000106 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/resource/file.rb:20 [FINISH]
c:0021 p:---- s:0105 e:000104 CFUNC :require
c:0020 p:0104 s:0101 e:000100 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0019 p:0023 s:0091 e:000090 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/provider/file.rb:21 [FINISH]
c:0018 p:---- s:0089 e:000088 CFUNC :require
c:0017 p:0104 s:0085 e:000084 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0016 p:0015 s:0075 e:000074 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/provider/cookbook_file.rb:20 [FINISH]
c:0015 p:---- s:0073 e:000072 CFUNC :require
c:0014 p:0104 s:0069 e:000068 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0013 p:0015 s:0059 e:000058 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/providers.rb:20 [FINISH]
c:0012 p:---- s:0057 e:000056 CFUNC :require
c:0011 p:0104 s:0053 e:000052 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0010 p:0055 s:0043 e:000042 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef.rb:25 [FINISH]
c:0009 p:---- s:0041 e:000040 CFUNC :require
c:0008 p:0104 s:0037 e:000036 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0007 p:0007 s:0027 e:000026 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/application/solo.rb:19 [FINISH]
c:0006 p:---- s:0025 e:000024 CFUNC :require
c:0005 p:0104 s:0021 e:000020 METHOD /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58
c:0004 p:0046 s:0011 e:000010 TOP /Library/Ruby/Gems/1.8/gems/chef-11.4.0/bin/chef-solo:23 [FINISH]
c:0003 p:---- s:0009 e:000008 CFUNC :load
c:0002 p:0095 s:0005 E:000ae0 EVAL /usr/bin/chef-solo:19 [FINISH]
c:0001 p:0000 s:0002 E:0006f8 TOP [FINISH]

/usr/bin/chef-solo:19:in <main>' /usr/bin/chef-solo:19:inload'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/bin/chef-solo:23:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/application/solo.rb:19:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef.rb:25:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/providers.rb:20:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/provider/cookbook_file.rb:20:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/provider/file.rb:21:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/resource/file.rb:20:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/resource.rb:21:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/dsl/platform_introspection.rb:217:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/mixin/language.rb:20:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/dsl/data_query.rb:19:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/search/query.rb:21:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/rest.rb:26:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/json_compat.rb:21:in<top (required)>'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in require' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/Library/Ruby/Gems/1.8/gems/yajl-ruby-1.1.0/lib/yajl.rb:1:in <top (required)>' /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:inrequire'
/usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'

-- C level backtrace information -------------------------------------------

-- Other runtime information -----------------------------------------------

  • Loaded script: /usr/bin/chef-solo

  • Loaded features:

    0 enumerator.so
    1 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/encdb.bundle
    2 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/trans/transdb.bundle
    3 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/rbconfig.rb
    4 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/compatibility.rb
    5 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/defaults.rb
    6 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/deprecate.rb
    7 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/errors.rb
    8 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/version.rb
    9 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/requirement.rb
    10 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/platform.rb
    11 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/specification.rb
    12 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/exceptions.rb
    13 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
    14 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
    15 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems.rb
    16 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/dependency.rb
    17 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/rubygems/path_support.rb
    18 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/version.rb
    19 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/nil_argument.rb
    20 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/mash.rb
    21 /Library/Ruby/Gems/1.8/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/exceptions.rb
    22 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/exceptions.rb
    23 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/thread.rb
    24 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/monitor.rb
    25 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/logger.rb
    26 /Library/Ruby/Gems/1.8/gems/mixlib-log-1.6.0/lib/mixlib/log/version.rb
    27 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/date_core.bundle
    28 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/date/format.rb
    29 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/date.rb
    30 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/time.rb
    31 /Library/Ruby/Gems/1.8/gems/mixlib-log-1.6.0/lib/mixlib/log/formatter.rb
    32 /Library/Ruby/Gems/1.8/gems/mixlib-log-1.6.0/lib/mixlib/log.rb
    33 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/log.rb
    34 /Library/Ruby/Gems/1.8/gems/mixlib-config-1.1.2/lib/mixlib/config.rb
    35 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/config.rb
    36 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/provider/breakpoint.rb
    37 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/file_access_control/unix.rb
    38 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/file_access_control.rb
    39 /Library/Ruby/Gems/1.8/gems/chef-11.4.0/lib/chef/mixin/params_validate.rb
    40 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/common.rb
    41 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/generic.rb
    42 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/ftp.rb
    43 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/http.rb
    44 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/https.rb
    45 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/ldap.rb
    46 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/ldaps.rb
    47 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri/mailto.rb
    48 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/uri.rb
    49 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/zlib.bundle
    50 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/socket.bundle
    51 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/socket.rb
    52 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/timeout.rb
    53 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/protocol.rb
    54 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/stringio.bundle
    55 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/exceptions.rb
    56 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/header.rb
    57 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/generic_request.rb
    58 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/request.rb
    59 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/requests.rb
    60 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/response.rb
    61 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/responses.rb
    62 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/proxy_delta.rb
    63 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http/backward.rb
    64 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/http.rb
    65 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/digest.bundle
    66 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/digest.rb
    67 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle
    68 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/bn.rb
    69 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/cipher.rb
    70 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/config.rb
    71 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/digest.rb
    72 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/x509.rb
    73 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/buffering.rb
    74 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/fcntl.bundle
    75 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl/ssl.rb
    76 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/openssl.rb
    77 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/net/https.rb
    78 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/json/version.rb
    79 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/ostruct.rb
    80 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/json/generic_object.rb
    81 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/json/common.rb
    82 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_16be.bundle
    83 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_16le.bundle
    84 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_32be.bundle
    85 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/utf_32le.bundle
    86 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/json/ext/parser.bundle
    87 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/json/ext/generator.bundle
    88 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/json/ext.rb
    89 /usr/local/Cellar/ruby/2.0.0-p195/lib/ruby/2.0.0/json.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Note: bug report submitted to ruby-lang

Postgres not configured for UTF-8

With "encoding: UTF-8" in our schema.rb file we cannot create a database out of the box. We got a bunch of errors related to default encodings. The solution was to uninstall postgres and its data. From initdb we had to recreate the db with "initdb -E utf8".

-Sam on behalf of Ship.io

WS_USER constant weirdness.

Everytime my soloist run gets to the user_owns_usr_local recipe it complains about an uninitialized constant Chef::Recipe::WS_USER and exits. What am I doing wrong here?

Can't install Nokogiri because of libxml2 dependency

I get this error.

Installing nokogiri 1.6.7.2 with native extensions

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --use-system-libraries
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using system libraries.
libxml2 version 2.6.21 or later is required!
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

macOS EOL'd system ruby makes running sprout difficult

macOS (v10.12) ships with an EOL'd version of ruby (v2.0.0p648),

This is problematic for running sprout because many ruby gems are dropping support for this version of ruby. The following version locks are currently required to run sprout: https://github.com/pivotal-sprout/sprout-chruby/blob/master/Gemfile#L12-L20

There are a number of possible options for addressing the lagging ruby support in macOS.

One Idea is to replace the sprout ecosystem with something based on Brewfile plus some sort of dotfiles tooling. This would be losing the investment in cookbooks that have been created.

Another idea would be for sprout to bring its own ruby. This would increase boot-strap time but give a consistent ruby env which sprout and its associated gems could depend on.

I'm opening this issue as a place to further this discussion. Paging @wendorf, @cunnie, @hiremaga, ... Please tag anyone who might be interested.

Error on installing

I have XCode and XCode command tools installed:

screen shot 2013-04-30 at 9 35 53 pm

Then:

Canopy 64bit) ~ git clone https://github.com/pivotal-sprout/sprout-wrap.git
Cloning into 'sprout-wrap'...
remote: Counting objects: 110, done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 110 (delta 50), reused 95 (delta 35)
Receiving objects: 100% (110/110), 13.60 KiB, done.
Resolving deltas: 100% (50/50), done.
(Canopy 64bit) ~ cd sprout-wrap/
(Canopy 64bit) ~/sprout-wrap (master ✓) sudo gem install bundler
Password:
Successfully installed bundler-1.3.5
Parsing documentation for bundler-1.3.5
Done installing documentation for bundler (2 sec).
1 gem installed
(Canopy 64bit) ~/sprout-wrap (master ✓) bundle
ERROR: Gem bundler is not installed, run gem install bundler first.

(Canopy 64bit) ~/sprout-wrap (master ✓) sw_vers
ProductName: Mac OS X
ProductVersion: 10.8.3
BuildVersion: 12D78

Needs patch to work under XCode 5.1

This is probably an issue with one of the dependencies, but in case you run into this when running with sprout-wrap, it wasn't clear to me what was wrong. This might help others.

The current build fails if the system has been updated to XCode 5.1. The initial bundle fails on both json (1.7.7) and yajl-ruby (1.1.0).

Solution for now seems to be installing those gems manually with:

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install json -v '1.7.7'

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install yaji-ruby -v '1.1.0'

(Note: if using system ruby, you may need to run those commands with sudo)

Reference: http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on-mavericks-and-xcode-5-1-unknown-argument-mul), which refers to the XCode 5.1 Release Note:

The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. 
This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified.

Projects using invalid compiler options will need to be changed to remove those options. 
To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning:

-Wno-error=unused-command-line-argument-hard-error-in-future

To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning.

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName

Not sure what the long term solution would be if that workaround is disabled in the future.

can't compile JSON on Mavericks MBP Retina

$ sudo bundle
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Using archive-tar-minitar (0.5.2)
Using awesome_print (1.1.0)
Using erubis (2.7.0)
Using highline (1.6.19)

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
creating Makefile

make "DESTDIR="
compiling generator.c
linking shared-object json/ext/generator.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [generator.bundle] Error 1


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.7.7 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.7.7), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.7'` succeeds before bundling.

I worked around this with the following commands which I learned from StackOverflow:

$ sudo bash
# ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install json -v 1.7.7

_Note_: this is not the latest version of the JSON gem.

Problem with installing XQuartz-2.7.4, CCMenu, KeyCastr, JavaForOSX etc. under Mavericks

We got the following output when executing soloist under mavericks when it tried to install osx apps recipes. We had to manually install the XQuartz package in order to proceed. Somehow the installer is not proceeding correctly from soloist.

Looks like packages coming from a dmg file do not work correctly, not sure exactly why. This could be due to some race condition trying to mount the dmg and reading it before it is ready. We are using a late 2013 iMac with an SSD.

It seems like things installed by brew cask install seemed to work correctly, but anything with a custom installation through rsync or by manipulating files in the volume seemed to fail.

    - execute the ruby block attach /var/chef/cache/XQuartz.dmg

  * execute[sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target /] action run[2014-02-03T13:32:55-08:00] INFO: Processing execute[sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target /] action run (/Users/pacerpro/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 66)
installer: Error the package path specified was invalid: '/Volumes/XQuartz-2.7.4/XQuartz.pkg'.

================================================================================
Error executing action `run` on resource 'execute[sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target /]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target / ----
STDOUT: installer: Error the package path specified was invalid: '/Volumes/XQuartz-2.7.4/XQuartz.pkg'.
STDERR: 
---- End output of sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target / ----
Ran sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target / returned 1


Resource Declaration:
---------------------
# In /Users/pacerpro/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb

 66:       execute "sudo installer -pkg '/Volumes/#{volumes_dir}/#{new_resource.app}.#{new_resource.type}' -target /" do
 67:         # Prevent cfprefsd from holding up hdiutil detach for certain disk images
 68:         environment('__CFPREFERENCES_AVOID_DAEMON' => '1') if Gem::Version.new(node['platform_version']) >= Gem::Version.new('10.8')
 69:       end
 70:     end



Compiled Resource:
------------------
# Declared in /Users/pacerpro/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb:66:in `block in class_from_file'

execute("sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target /") do
  action "run"
  retries 0
  retry_delay 2
  command "sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target /"
  backup 5
  environment {"__CFPREFERENCES_AVOID_DAEMON"=>"1"}
  returns 0
  cookbook_name :"sprout-osx-apps"
end



[2014-02-03T13:32:55-08:00] INFO: Running queued delayed notifications before re-raising exception

================================================================================
Error executing action `install` on resource 'dmg_package[XQuartz]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target /] (/Users/pacerpro/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 66) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target / ----
STDOUT: installer: Error the package path specified was invalid: '/Volumes/XQuartz-2.7.4/XQuartz.pkg'.
STDERR: 
---- End output of sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target / ----
Ran sudo installer -pkg '/Volumes/XQuartz-2.7.4/XQuartz.pkg' -target / returned 1


Resource Declaration:
---------------------
# In /Users/pacerpro/workspace/sprout-wrap/cookbooks/sprout-osx-apps/recipes/xquartz.rb

  1: dmg_package "XQuartz" do
  2:   source "http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.4.dmg"
  3:   action :install
  4:   volumes_dir "XQuartz-2.7.4"
  5:   checksum "3f7c156fc4b13e3f0d0e44523ef2bd3cf7ea736126616dd2da28abb31840923c"
  6:   type "pkg"
  7:   owner node['current_user']
  8:   package_id "org.macosforge.xquartz.pkg"
  9: end



Compiled Resource:
------------------
# Declared in /Users/pacerpro/workspace/sprout-wrap/cookbooks/sprout-osx-apps/recipes/xquartz.rb:1:in `from_file'

dmg_package("XQuartz") do
  action [:install]
  updated true
  updated_by_last_action true
  retries 0
  retry_delay 2
  cookbook_name :"sprout-osx-apps"
  recipe_name "xquartz"
  source "http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.4.dmg"
  volumes_dir "XQuartz-2.7.4"
  checksum "3f7c156fc4b13e3f0d0e44523ef2bd3cf7ea736126616dd2da28abb31840923c"
  type "pkg"
  owner "pacerpro"
  package_id "org.macosforge.xquartz.pkg"
  app "XQuartz"
  destination "/Applications"
end

Problems with fresh run on Mavericks

Hi,

Not sure if this is a bug, but when running sprout wrap according to the instructions and on a fresh version of OSX Maverics you get the following message:

[2014-01-08T17:36:01+01:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.6.0
[2014-01-08T17:36:02+01:00] INFO: *** Chef 11.6.0 ***
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.

The installation seems to run on however, so I am curious what the JVM is needed for?

I also got a command timeout when installing QT:

Generated at 2014-01-08 18:02:08 +0100
Mixlib::ShellOut::CommandTimeout: package[qt] (sprout-osx-apps::qt line 3) had an error: Mixlib::ShellOut::CommandTimeout: command timed out:
---- Begin output of brew install --HEAD qt ----
STDOUT: ==> Cloning git://gitorious.org/qt/qt.git
==> Checking out branch 4.8
==> ./configure -prefix /usr/local/Cellar/qt/HEAD -system-zlib -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -no-3dnow -no-ssse3 -L/opt/X11/lib -I/opt/X11/include -platform unsupported/macx-clang-libc++ -no-qt3support -nomake docs -arch x86_64
==> make
STDERR: Cloning into '/Library/Caches/Homebrew/qt--git'...

Failure on step: "Checking that mysql is running" because of privileges issue

When running caffeinate bundle exec soloist on Yosemite v10.10.5, I'm getting the following permission error when the recipe for mysql is run:

- execute the ruby block Checking that mysql is running
  * execute[set the root password to the default] action run[2015-11-24T11:49:33-05:00] INFO: Processing execute[set the root password to the default] action run (sprout-mysql::install line 57)
[2015-11-24T11:49:33-05:00] INFO: Processing execute[Guard resource] action run (dynamically defined)
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'


    ================================================================================
    Error executing action `run` on resource 'execute[set the root password to the default]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of mysqladmin -uroot password password ----
    STDOUT:
    STDERR: mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'
    ---- End output of mysqladmin -uroot password password ----
    Ran mysqladmin -uroot password password returned 1

    Resource Declaration:
    ---------------------
    # In /Users/pivotal/workspace/sprout-wrap/cookbooks/sprout-mysql/recipes/install.rb

     57: execute 'set the root password to the default' do
     58:   command "mysqladmin -uroot password #{PASSWORD}"
     59:   not_if "mysql -uroot -p#{PASSWORD} -e 'show databases'"
     60: end
     61:

    Compiled Resource:
    ------------------
    # Declared in /Users/pivotal/workspace/sprout-wrap/cookbooks/sprout-mysql/recipes/install.rb:57:in `from_file'

    execute("set the root password to the default") do
      action [:run]
      retries 0
      retry_delay 2
      default_guard_interpreter :execute
      command "mysqladmin -uroot password password"
      backup 5
      returns 0
      declared_type :execute
      cookbook_name :"sprout-mysql"
      recipe_name "install"
      not_if "mysql -uroot -ppassword -e 'show databases'"
    end

[2015-11-24T11:49:33-05:00] INFO: Running queued delayed notifications before re-raising exception
[2015-11-24T11:49:33-05:00] INFO: execute[TimeMachine should NOT appear in the status bar] sending run action to execute[restart SystemUIServer] (delayed)
Recipe: sprout-osx-settings::timemachine
  * execute[restart SystemUIServer] action run[2015-11-24T11:49:33-05:00] INFO: Processing execute[restart SystemUIServer] action run (sprout-osx-settings::timemachine line 17)
[2015-11-24T11:49:33-05:00] INFO: execute[restart SystemUIServer] ran successfully

    - execute killall -HUP SystemUIServer

Running handlers:
[2015-11-24T11:49:33-05:00] ERROR: Running exception handlers
Running handlers complete
[2015-11-24T11:49:33-05:00] ERROR: Exception handlers complete
Chef Client failed. 89 resources updated in 116.752981 seconds
[2015-11-24T11:49:33-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-11-24T11:49:33-05:00] ERROR: execute[set the root password to the default] (sprout-mysql::install line 57) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of mysqladmin -uroot password password ----
STDOUT:
STDERR: mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
---- End output of mysqladmin -uroot password password ----
Ran mysqladmin -uroot password password returned 1
[2015-11-24T11:49:33-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

So far have tried:

  • changing permissions of /usr/local/bin to pivotal:staff
  • re-install mysql via brew (still got the same error, which indicates this MAY be a brew related issue)

soloist run failed

This is the output from running 'bundle exec soloist' on a brand new 10.8.3 iMac.

================================================================================
Error executing action `run` on resource 'execute[hdiutil detach '/Volumes/Firefox']'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of hdiutil detach '/Volumes/Firefox' ----
STDOUT: 
STDERR: hdiutil: couldn't unmount "disk2" - Resource busy
---- End output of hdiutil detach '/Volumes/Firefox' ----
Ran hdiutil detach '/Volumes/Firefox' returned 2


Resource Declaration:
---------------------
# In /Users/vfiles/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb

 66:     execute "hdiutil detach '/Volumes/#{volumes_dir}'"
 67:   end



Compiled Resource:
------------------
# Declared in /Users/vfiles/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb:66:in `class_from_file'

execute("hdiutil detach '/Volumes/Firefox'") do
  retry_delay 2
  backup 5
  returns 0
  retries 0
  action "run"
  command "hdiutil detach '/Volumes/Firefox'"
  cookbook_name :"sprout-osx-apps"
end



[2013-06-12T11:34:13-04:00] INFO: Running queued delayed notifications before re-raising exception
[2013-06-12T11:34:13-04:00] ERROR: Running exception handlers
[2013-06-12T11:34:13-04:00] ERROR: Exception handlers complete
Chef Client failed. 34 resources updated
[2013-06-12T11:34:13-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-06-12T11:34:13-04:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[hdiutil detach '/Volumes/Firefox'] (/Users/vfiles/workspace/sprout-wrap/cookbooks/dmg/providers/package.rb line 66) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of hdiutil detach '/Volumes/Firefox' ----
STDOUT: 
STDERR: hdiutil: couldn't unmount "disk2" - Resource busy
---- End output of hdiutil detach '/Volumes/Firefox' ----
Ran hdiutil detach '/Volumes/Firefox' returned 2
![screen shot 2013-06-12 at 11 35 15 am](https://f.cloud.github.com/assets/2857111/643435/b3b6a7f2-d375-11e2-9ff8-cf7874e74ff1.png)

Initialize

  • .ruby-version
  • Gemfile
  • soloistrc
  • Cheffile
  • site-cookbooks
  • FoodCritic
  • .travis.yml

Some newer versions of OS X seem to have problems mounting disk images, causing Travis build failures

See the failure at https://travis-ci.org/pivotal-sprout/sprout-wrap/builds/134004962

Error message when trying to brew cask install firefox:

hdiutil: mount failed - Protocol wrong type for socket
STDERR: Error: Empty plist input

This is resolved by not performing a systemupdate.

There is some conversation about the issue, but it's not clear what we can do in the Travis world to fix it:
http://apple.stackexchange.com/questions/238771/i-cannot-mount-dmg-file-for-vmware-fusion-protocol-wrong-type-for-socket-error
https://origin-discussions-us.apple.com/thread/7568956

Is this just a problem in Travis, or will people see the issue in real life?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.