berekuk/questhub — pull request #153 by sergeyromanov (2014-10-20 21:33:32+00:00)
Title: Vagrantfile patch

Two tweaks for Vagrantfile here:
* for some reason Vagrant image was missing `make`, so the whole provisioning was failing quite early. I've added simple fix for that. There probably is a better way to insure beforehand this essential tool is in place, but `apt-get install` just does the right thing for me;
* far more serious showstopper -- `chef-solo` failure:
```
==> default: Successfully installed mixlib-config-2.1.0
==> default: Successfully installed mixlib-shellout-1.6.0
==> default: Successfully installed chef-10.16.4
==> default: Successfully installed systemu-2.6.4
==> default: Successfully installed ffi-1.9.6
==> default: Successfully installed libyajl2-1.1.0
==> default: Successfully installed ffi-yajl-1.2.0
==> default: Successfully installed wmi-lite-1.0.0
==> default: Successfully installed rdoc-4.1.2
==> default: 9 gems installed
==> default: Running provisioner: chef_solo...
Generating chef JSON and uploading...
==> default: Running chef-solo...
==> default: stdin: is not a tty
==> default: /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require': /opt/vagrant_
ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout/unix.rb:294: syntax error, unexpected tSYMBEG, expecti
ng tAMPER (SyntaxError)
==> default: ..._of?(Array) ? exec(*command, :close_others=>true) : exec(com...
==> default: ^
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:36
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/shell_out.rb:1
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/mixin/shell_out.rb:18
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/resource/conditional.rb:19
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/resource.rb:24
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/resource/file.rb:20
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/provider/file.rb:21
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/provider/cookbook_file.rb:20
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/providers.rb:20
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef.rb:25
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/application/solo.rb:19
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
==> default: from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
==> default: from /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.4/bin/chef-solo:23
==> default: from /opt/vagrant_ruby/bin/chef-solo:19:in `load'
==> default: from /opt/vagrant_ruby/bin/chef-solo:19
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
```
Looks like `mixlib-shellout` 1.6.0 (released on October 7) doesn't play well with `chef-solo` and Questhub is [not the only one](https://github.com/ynniv/opengenera/issues/9) being bitten by this already.
My suggestion is to stick with previous stable `mixlib-shellout` (1.4.0) for now.