Coder Social home page Coder Social logo

solo_wizard's Introduction

SoloWizard

This is the code for the solowizard.com web application.

tl;dr: With SoloWizard, you are a few clicks away from a configurable chef script for your OS-X development machine.

Many teams use chef to manage their production machines, but developers often build their development boxes by hand. SoloWizard makes it painless to create a configurable chef solo script to get your development machine humming: mysql, sublime text, .bash_profile tweaks to OS-X settings - it's all there!

Running it locally

Pull down the solo_wizard source code and bundle

git clone [email protected]:tommyh/solo_wizard.git

cd solo_wizard

# accept the rvm version

gem install bundler --no-ri --no-rdoc
bundle install

rake db:migrate

Run a full build (rspec & cucumber) and confirm it passes:

rake

Seed your development database (this requires internet access):

thor solo_wizard_tasks:create_and_update_recipes_from_github
thor solo_wizard_tasks:update_optional_metadata

Start your server:

rails s

Optional: If you'd like to use foreman, which is used in production, skip "rails s" and perform the following:

cp .env-example .env
foreman start

Notes

  • thor solo_wizard_tasks:create_and_update_recipes_from_github is run as a cron task every 10 minutes, so the recipes stay up to date.

Special thanks

SoloWizard is built ontop of 3 popular and well supported open source projects: Chef Solo, the pivotal_workstation cookbook, and the soloist gem.

Aliza Hallett (my wife) for creating the css.

Copyright

Copyright © 2012 Tom Hallett. See MIT-LICENSE for details.

solo_wizard's People

Contributors

tommyh 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

solo_wizard's Issues

A couple of bad recipes

Chef::Exceptions::RecipeNotFound


could not find recipe ag for cookbook pivotal_workstation

Chef::Exceptions::RecipeNotFound


could not find recipe bash_path_order for cookbook pivotal_workstation

Chef::Exceptions::RecipeNotFound


could not find recipe bash_path_order for cookbook pivotal_workstation

Chef::Exceptions::RecipeNotFound


could not find recipe bash_profile-aliases for cookbook pivotal_workstation

Chef::Exceptions::RecipeNotFound


could not find recipe bash_profile-better_history for cookbook pivotal_workstation

Chef::Exceptions::RecipeNotFound


could not find recipe gem_no_rdoc_no_ri for cookbook pivotal_workstation

Fork github repo rather than generate in script

Not part of an MVP, but thought it might be something to consider later. Might be nice to have a network graph coming from a project stub similar to opscode's cookbook-repo. Not sure about that.

Would also mean folks would need to authenticate using github, so maybe that's putting the setup bar a little high (not to mention complexity of the app).

Anyhow, just a thought. If github allowed repo ownership transfer via the api, that might be a better solution (no need to authenticate each user, just create repo with a bot and give them the repo), but github doesn't currently allow this.

See: http://developer.github.com/v3/repos/forks/#create-a-fork

Derive recipe metadata from pivotal_workstation repo

As per pivotal/pivotal_workstation#94

For testing, we can just fork pivotal_workstation and copy solo_wizards descriptions into recipe descriptions in metadata.rb, adding category hashes like #GeneralSoftware. Thinking we might want to make them more concise later, but will just copy for now.

New to rails, so this will be a little slow for me, but it's a good opportunity to sort things out :)

Derive defaults from meta_ recipe (or role?)

As you alluded to @tommyh, would be nice to make the app more of a first-class citizen. Seems another thing baked into the app at the moment is the idea of defaults for checkboxes.

Perhaps this would be a reason to consider converting meta_* recipes into roles. I realize that soloist doesn't currently support roles, nor are the pivotal devs used to dealing with roles, so it's not as trivial as it may first appear.

But whether roles or recipes, we could probably do something clever with populating other checkboxes based on whether a meta_ recipe/role were selected.

/cc @mkocher

Error Running active_corners recipe

Output:

Building native extensions. This could take a while...
[Version 0.7.8] test suite cleanup (eliminated some race conditions related to queue.message_count)
Building native extensions. This could take a while...
Successfully installed mixlib-config-1.1.2
Successfully installed mixlib-cli-1.2.2
Successfully installed mixlib-log-1.4.1
Successfully installed mixlib-authentication-1.3.0
Successfully installed mixlib-shellout-1.1.0
Successfully installed systemu-2.5.2
Successfully installed yajl-ruby-1.1.0
Successfully installed ipaddress-0.8.0
Successfully installed ohai-6.14.0
Successfully installed mime-types-1.19
Successfully installed rest-client-1.6.7
Successfully installed bunny-0.7.9
Successfully installed json-1.6.1
Successfully installed polyglot-0.3.3
Successfully installed treetop-1.4.12
Successfully installed net-ssh-2.2.2
Successfully installed net-ssh-gateway-1.1.0
Successfully installed net-ssh-multi-1.1
Successfully installed highline-1.6.15
Successfully installed moneta-0.6.0
Successfully installed erubis-2.7.0
Successfully installed uuidtools-2.1.3
Successfully installed chef-10.16.4
Successfully installed soloist-0.9.7
24 gems installed
Installing ri documentation for mixlib-config-1.1.2...
Installing ri documentation for mixlib-cli-1.2.2...
Unrecognized directive 'short' in README.rdoc
Unrecognized directive 'long' in README.rdoc
Unrecognized directive 'description' in README.rdoc
Unrecognized directive 'default' in README.rdoc
Unrecognized directive 'required' in README.rdoc
Unrecognized directive 'on' in README.rdoc
Unrecognized directive 'boolean' in README.rdoc
Unrecognized directive 'show_options' in README.rdoc
Unrecognized directive 'exit' in README.rdoc
Unrecognized directive 'proc' in README.rdoc
Installing ri documentation for mixlib-log-1.4.1...
Installing ri documentation for mixlib-authentication-1.3.0...
Installing ri documentation for mixlib-shellout-1.1.0...
Installing ri documentation for systemu-2.5.2...
Installing ri documentation for yajl-ruby-1.1.0...
Installing ri documentation for ipaddress-0.8.0...
Installing ri documentation for ohai-6.14.0...
Installing ri documentation for mime-types-1.19...
Installing ri documentation for rest-client-1.6.7...
Installing ri documentation for bunny-0.7.9...
Installing ri documentation for json-1.6.1...
Installing ri documentation for polyglot-0.3.3...
Installing ri documentation for treetop-1.4.12...
Installing ri documentation for net-ssh-2.2.2...
Installing ri documentation for net-ssh-gateway-1.1.0...
Installing ri documentation for net-ssh-multi-1.1...
Installing ri documentation for highline-1.6.15...
Installing ri documentation for moneta-0.6.0...
Installing ri documentation for erubis-2.7.0...
Installing ri documentation for uuidtools-2.1.3...
Installing ri documentation for chef-10.16.4...
Installing ri documentation for soloist-0.9.7...
Installing RDoc documentation for mixlib-config-1.1.2...
Installing RDoc documentation for mixlib-cli-1.2.2...
Unrecognized directive 'short' in README.rdoc
Unrecognized directive 'long' in README.rdoc
Unrecognized directive 'description' in README.rdoc
Unrecognized directive 'default' in README.rdoc
Unrecognized directive 'required' in README.rdoc
Unrecognized directive 'on' in README.rdoc
Unrecognized directive 'boolean' in README.rdoc
Unrecognized directive 'show_options' in README.rdoc
Unrecognized directive 'exit' in README.rdoc
Unrecognized directive 'proc' in README.rdoc
Installing RDoc documentation for mixlib-log-1.4.1...
Installing RDoc documentation for mixlib-authentication-1.3.0...
Installing RDoc documentation for mixlib-shellout-1.1.0...
Installing RDoc documentation for systemu-2.5.2...
Installing RDoc documentation for yajl-ruby-1.1.0...
Installing RDoc documentation for ipaddress-0.8.0...
Installing RDoc documentation for ohai-6.14.0...
Installing RDoc documentation for mime-types-1.19...
Installing RDoc documentation for rest-client-1.6.7...
Installing RDoc documentation for bunny-0.7.9...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Installing RDoc documentation for json-1.6.1...
Installing RDoc documentation for polyglot-0.3.3...
Installing RDoc documentation for treetop-1.4.12...
Installing RDoc documentation for net-ssh-2.2.2...
Installing RDoc documentation for net-ssh-gateway-1.1.0...
Installing RDoc documentation for net-ssh-multi-1.1...
Installing RDoc documentation for highline-1.6.15...
Could not find main page README
Could not find main page README
Could not find main page README
Could not find main page README
Installing RDoc documentation for moneta-0.6.0...
Installing RDoc documentation for erubis-2.7.0...
Installing RDoc documentation for uuidtools-2.1.3...
Installing RDoc documentation for chef-10.16.4...
Installing RDoc documentation for soloist-0.9.7...
Cloning into 'pivotal_workstation'...
remote: Counting objects: 4757, done.
remote: Compressing objects: 100% (1778/1778), done.
remote: Total 4757 (delta 2920), reused 4515 (delta 2731)
Receiving objects: 100% (4757/4757), 876.85 KiB | 932 KiB/s, done.
Resolving deltas: 100% (2920/2920), done.
Cloning into 'dmg'...
remote: Counting objects: 102, done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 102 (delta 51), reused 82 (delta 31)
Receiving objects: 100% (102/102), 19.69 KiB | 13 KiB/s, done.
Resolving deltas: 100% (51/51), done.
running chef: sudo bash -c 'PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin chef-solo -j /var/folders/9_/pzbfkpv11_9dk6xkp5xsnn8c0000gn/T/soloist20130108-976-ks2glr-0 -c /var/folders/9_/pzbfkpv11_9dk6xkp5xsnn8c0000gn/T/soloist20130108-976-1h39btn-0 -l info'
[2013-01-08T20:11:33-05:00] INFO: *** Chef 10.16.4 ***
[2013-01-08T20:11:36-05:00] INFO: Setting the run_list to ["pivotal_workstation::ack", "pivotal_workstation::active_corners", "pivotal_workstation::add_ops_user", "pivotal_workstation::bash_path_order", "pivotal_workstation::bash_profile-aliases", "pivotal_workstation::bash_profile-better_history", "pivotal_workstation::bash_profile-ctrl-o", "pivotal_workstation::bash_profile-git_completion", "pivotal_workstation::bash_profile-lang_en", "pivotal_workstation::bash_profile-no_sudo_gem_install", "pivotal_workstation::bash_profile-ps1", "pivotal_workstation::ca_certs_to_match_heroku", "pivotal_workstation::ccmenu", "pivotal_workstation::chrome", "pivotal_workstation::create_var_chef_cache", "pivotal_workstation::defaults_fast_key_repeat_rate", "pivotal_workstation::default_editor", "pivotal_workstation::disable_front_row", "pivotal_workstation::dock_preferences", "pivotal_workstation::dropbox", "pivotal_workstation::ec2_api_tools", "pivotal_workstation::enable_assistive_devices", "pivotal_workstation::finder_display_full_path", "pivotal_workstation::firefox", "pivotal_workstation::flycut", "pivotal_workstation::freeruler", "pivotal_workstation::function_keys", "pivotal_workstation::gem_no_rdoc_no_ri", "pivotal_workstation::git", "pivotal_workstation::github_for_mac", "pivotal_workstation::gitx", "pivotal_workstation::git_config_global_defaults", "pivotal_workstation::git_projects", "pivotal_workstation::git_scripts", "pivotal_workstation::global_environment_variables", "pivotal_workstation::grid", "pivotal_workstation::homebrew", "pivotal_workstation::imagemagick", "pivotal_workstation::increase_shared_memory", "pivotal_workstation::inputrc", "pivotal_workstation::input_on_login", "pivotal_workstation::iterm2", "pivotal_workstation::java", "pivotal_workstation::joe", "pivotal_workstation::jumpcut", "pivotal_workstation::keyboard_preferences", "pivotal_workstation::keycastr", "pivotal_workstation::libreoffice", "pivotal_workstation::locate_on", "pivotal_workstation::memcached", "pivotal_workstation::menubar_preferences", "pivotal_workstation::menumeters", "pivotal_workstation::mongodb", "pivotal_workstation::mouse_locator", "pivotal_workstation::mysql", "pivotal_workstation::nginx", "pivotal_workstation::node_js", "pivotal_workstation::oh_my_zsh", "pivotal_workstation::osx_updates", "pivotal_workstation::postgres", "pivotal_workstation::qt", "pivotal_workstation::rabbitmq", "pivotal_workstation::rbenv", "pivotal_workstation::redis", "pivotal_workstation::remove_expose_keyboard_shortcuts", "pivotal_workstation::remove_garageband", "pivotal_workstation::rubymine", "pivotal_workstation::rubymine_preferences_pivotal", "pivotal_workstation::rvm", "pivotal_workstation::safari_preferences", "pivotal_workstation::screen_sharing_app", "pivotal_workstation::screen_sharing_on", "pivotal_workstation::selenium_webdriver", "pivotal_workstation::set_finder_show_all_hd_on_desktop", "pivotal_workstation::set_finder_show_hd_on_desktop", "pivotal_workstation::set_finder_show_user_home_in_sidebar", "pivotal_workstation::set_multitouch_preferences", "pivotal_workstation::set_screensaver_preferences", "pivotal_workstation::shiftit", "pivotal_workstation::sizeup", "pivotal_workstation::skype", "pivotal_workstation::solr", "pivotal_workstation::sshd_on", "pivotal_workstation::ssh_copy_id", "pivotal_workstation::ssl_certificate", "pivotal_workstation::sublime_text", "pivotal_workstation::terminal_focus", "pivotal_workstation::terminal_preferences", "pivotal_workstation::textmate", "pivotal_workstation::textmate_bundles", "pivotal_workstation::textmate_preferences", "pivotal_workstation::timemachine_preferences", "pivotal_workstation::tmux", "pivotal_workstation::unix_essentials", "pivotal_workstation::user_owns_usr_local", "pivotal_workstation::vagrant", "pivotal_workstation::vim", "pivotal_workstation::virtualbox", "pivotal_workstation::window_focus", "pivotal_workstation::workspace_directory", "pivotal_workstation::xquartz", "pivotal_workstation::zsh"] from JSON
[2013-01-08T20:11:36-05:00] INFO: Run List is [recipe[pivotal_workstation::ack], recipe[pivotal_workstation::active_corners], recipe[pivotal_workstation::add_ops_user], recipe[pivotal_workstation::bash_path_order], recipe[pivotal_workstation::bash_profile-aliases], recipe[pivotal_workstation::bash_profile-better_history], recipe[pivotal_workstation::bash_profile-ctrl-o], recipe[pivotal_workstation::bash_profile-git_completion], recipe[pivotal_workstation::bash_profile-lang_en], recipe[pivotal_workstation::bash_profile-no_sudo_gem_install], recipe[pivotal_workstation::bash_profile-ps1], recipe[pivotal_workstation::ca_certs_to_match_heroku], recipe[pivotal_workstation::ccmenu], recipe[pivotal_workstation::chrome], recipe[pivotal_workstation::create_var_chef_cache], recipe[pivotal_workstation::defaults_fast_key_repeat_rate], recipe[pivotal_workstation::default_editor], recipe[pivotal_workstation::disable_front_row], recipe[pivotal_workstation::dock_preferences], recipe[pivotal_workstation::dropbox], recipe[pivotal_workstation::ec2_api_tools], recipe[pivotal_workstation::enable_assistive_devices], recipe[pivotal_workstation::finder_display_full_path], recipe[pivotal_workstation::firefox], recipe[pivotal_workstation::flycut], recipe[pivotal_workstation::freeruler], recipe[pivotal_workstation::function_keys], recipe[pivotal_workstation::gem_no_rdoc_no_ri], recipe[pivotal_workstation::git], recipe[pivotal_workstation::github_for_mac], recipe[pivotal_workstation::gitx], recipe[pivotal_workstation::git_config_global_defaults], recipe[pivotal_workstation::git_projects], recipe[pivotal_workstation::git_scripts], recipe[pivotal_workstation::global_environment_variables], recipe[pivotal_workstation::grid], recipe[pivotal_workstation::homebrew], recipe[pivotal_workstation::imagemagick], recipe[pivotal_workstation::increase_shared_memory], recipe[pivotal_workstation::inputrc], recipe[pivotal_workstation::input_on_login], recipe[pivotal_workstation::iterm2], recipe[pivotal_workstation::java], recipe[pivotal_workstation::joe], recipe[pivotal_workstation::jumpcut], recipe[pivotal_workstation::keyboard_preferences], recipe[pivotal_workstation::keycastr], recipe[pivotal_workstation::libreoffice], recipe[pivotal_workstation::locate_on], recipe[pivotal_workstation::memcached], recipe[pivotal_workstation::menubar_preferences], recipe[pivotal_workstation::menumeters], recipe[pivotal_workstation::mongodb], recipe[pivotal_workstation::mouse_locator], recipe[pivotal_workstation::mysql], recipe[pivotal_workstation::nginx], recipe[pivotal_workstation::node_js], recipe[pivotal_workstation::oh_my_zsh], recipe[pivotal_workstation::osx_updates], recipe[pivotal_workstation::postgres], recipe[pivotal_workstation::qt], recipe[pivotal_workstation::rabbitmq], recipe[pivotal_workstation::rbenv], recipe[pivotal_workstation::redis], recipe[pivotal_workstation::remove_expose_keyboard_shortcuts], recipe[pivotal_workstation::remove_garageband], recipe[pivotal_workstation::rubymine], recipe[pivotal_workstation::rubymine_preferences_pivotal], recipe[pivotal_workstation::rvm], recipe[pivotal_workstation::safari_preferences], recipe[pivotal_workstation::screen_sharing_app], recipe[pivotal_workstation::screen_sharing_on], recipe[pivotal_workstation::selenium_webdriver], recipe[pivotal_workstation::set_finder_show_all_hd_on_desktop], recipe[pivotal_workstation::set_finder_show_hd_on_desktop], recipe[pivotal_workstation::set_finder_show_user_home_in_sidebar], recipe[pivotal_workstation::set_multitouch_preferences], recipe[pivotal_workstation::set_screensaver_preferences], recipe[pivotal_workstation::shiftit], recipe[pivotal_workstation::sizeup], recipe[pivotal_workstation::skype], recipe[pivotal_workstation::solr], recipe[pivotal_workstation::sshd_on], recipe[pivotal_workstation::ssh_copy_id], recipe[pivotal_workstation::ssl_certificate], recipe[pivotal_workstation::sublime_text], recipe[pivotal_workstation::terminal_focus], recipe[pivotal_workstation::terminal_preferences], recipe[pivotal_workstation::textmate], recipe[pivotal_workstation::textmate_bundles], recipe[pivotal_workstation::textmate_preferences], recipe[pivotal_workstation::timemachine_preferences], recipe[pivotal_workstation::tmux], recipe[pivotal_workstation::unix_essentials], recipe[pivotal_workstation::user_owns_usr_local], recipe[pivotal_workstation::vagrant], recipe[pivotal_workstation::vim], recipe[pivotal_workstation::virtualbox], recipe[pivotal_workstation::window_focus], recipe[pivotal_workstation::workspace_directory], recipe[pivotal_workstation::xquartz], recipe[pivotal_workstation::zsh]]
[2013-01-08T20:11:36-05:00] INFO: Run List expands to [pivotal_workstation::ack, pivotal_workstation::active_corners, pivotal_workstation::add_ops_user, pivotal_workstation::bash_path_order, pivotal_workstation::bash_profile-aliases, pivotal_workstation::bash_profile-better_history, pivotal_workstation::bash_profile-ctrl-o, pivotal_workstation::bash_profile-git_completion, pivotal_workstation::bash_profile-lang_en, pivotal_workstation::bash_profile-no_sudo_gem_install, pivotal_workstation::bash_profile-ps1, pivotal_workstation::ca_certs_to_match_heroku, pivotal_workstation::ccmenu, pivotal_workstation::chrome, pivotal_workstation::create_var_chef_cache, pivotal_workstation::defaults_fast_key_repeat_rate, pivotal_workstation::default_editor, pivotal_workstation::disable_front_row, pivotal_workstation::dock_preferences, pivotal_workstation::dropbox, pivotal_workstation::ec2_api_tools, pivotal_workstation::enable_assistive_devices, pivotal_workstation::finder_display_full_path, pivotal_workstation::firefox, pivotal_workstation::flycut, pivotal_workstation::freeruler, pivotal_workstation::function_keys, pivotal_workstation::gem_no_rdoc_no_ri, pivotal_workstation::git, pivotal_workstation::github_for_mac, pivotal_workstation::gitx, pivotal_workstation::git_config_global_defaults, pivotal_workstation::git_projects, pivotal_workstation::git_scripts, pivotal_workstation::global_environment_variables, pivotal_workstation::grid, pivotal_workstation::homebrew, pivotal_workstation::imagemagick, pivotal_workstation::increase_shared_memory, pivotal_workstation::inputrc, pivotal_workstation::input_on_login, pivotal_workstation::iterm2, pivotal_workstation::java, pivotal_workstation::joe, pivotal_workstation::jumpcut, pivotal_workstation::keyboard_preferences, pivotal_workstation::keycastr, pivotal_workstation::libreoffice, pivotal_workstation::locate_on, pivotal_workstation::memcached, pivotal_workstation::menubar_preferences, pivotal_workstation::menumeters, pivotal_workstation::mongodb, pivotal_workstation::mouse_locator, pivotal_workstation::mysql, pivotal_workstation::nginx, pivotal_workstation::node_js, pivotal_workstation::oh_my_zsh, pivotal_workstation::osx_updates, pivotal_workstation::postgres, pivotal_workstation::qt, pivotal_workstation::rabbitmq, pivotal_workstation::rbenv, pivotal_workstation::redis, pivotal_workstation::remove_expose_keyboard_shortcuts, pivotal_workstation::remove_garageband, pivotal_workstation::rubymine, pivotal_workstation::rubymine_preferences_pivotal, pivotal_workstation::rvm, pivotal_workstation::safari_preferences, pivotal_workstation::screen_sharing_app, pivotal_workstation::screen_sharing_on, pivotal_workstation::selenium_webdriver, pivotal_workstation::set_finder_show_all_hd_on_desktop, pivotal_workstation::set_finder_show_hd_on_desktop, pivotal_workstation::set_finder_show_user_home_in_sidebar, pivotal_workstation::set_multitouch_preferences, pivotal_workstation::set_screensaver_preferences, pivotal_workstation::shiftit, pivotal_workstation::sizeup, pivotal_workstation::skype, pivotal_workstation::solr, pivotal_workstation::sshd_on, pivotal_workstation::ssh_copy_id, pivotal_workstation::ssl_certificate, pivotal_workstation::sublime_text, pivotal_workstation::terminal_focus, pivotal_workstation::terminal_preferences, pivotal_workstation::textmate, pivotal_workstation::textmate_bundles, pivotal_workstation::textmate_preferences, pivotal_workstation::timemachine_preferences, pivotal_workstation::tmux, pivotal_workstation::unix_essentials, pivotal_workstation::user_owns_usr_local, pivotal_workstation::vagrant, pivotal_workstation::vim, pivotal_workstation::virtualbox, pivotal_workstation::window_focus, pivotal_workstation::workspace_directory, pivotal_workstation::xquartz, pivotal_workstation::zsh]
[2013-01-08T20:11:36-05:00] INFO: Starting Chef Run for Jonathans-MacBook-Pro.local
[2013-01-08T20:11:36-05:00] INFO: Running start handlers
[2013-01-08T20:11:36-05:00] INFO: Start handlers complete.

Recipe Compile Error in /Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb

SyntaxError

compile error
/Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb:2: odd number list for Hash
desktop: 4,
^
/Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb:2: syntax error, unexpected ':', expecting '}'
desktop: 4,
^

Cookbook Trace:

/Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb:2:in `from_file'

Relevant File Content:

/Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb:

1: active_corner_value_to_int = {
2>> desktop: 4,
3: dashboard: 7,
4: mission_control: 2,
5: application_windows: 3,
6: launchpad: 11,
7: start_screen_saver: 5,
8: disable_screen_saver: 6,
9: put_display_to_sleep: 10,
10: noop: 0
11: }

[2013-01-08T20:11:37-05:00] ERROR: Running exception handlers
[2013-01-08T20:11:37-05:00] ERROR: Exception handlers complete
[2013-01-08T20:11:37-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-01-08T20:11:37-05:00] FATAL: SyntaxError: compile error
/Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb:2: odd number list for Hash
desktop: 4,
^
/Users/username/cookbooks/pivotal_workstation/recipes/active_corners.rb:2: syntax error, unexpected ':', expecting '}'
desktop: 4,
^
~

Chef Cookbook Compilation Error

Not totally sure what is going wrong or why the script isn't providing the correct arguments to compile the chef cookbooks. Any help would be appreciated.

std.out Below:

Michaels-MacBook-Pro:~ mike$ bash < <(curl -s http://www.solowizard.com/soloist_scripts/tbhs7v.sh )
~ ~
Password:
Successfully installed soloist-1.0.1
1 gem installed
Installing ri documentation for soloist-1.0.1...
Installing RDoc documentation for soloist-1.0.1...
Already up-to-date.
Already up-to-date.
Starting Chef Client, version 11.4.4
[2013-05-24T15:51:06-04:00] INFO: *** Chef 11.4.4 ***
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
[2013-05-24T15:51:06-04:00] INFO: Setting the run_list to ["pivotal_workstation::ack", "pivotal_workstation::create_var_chef_cache", "pivotal_workstation::git", "pivotal_workstation::gitx", "pivotal_workstation::git_config_global_defaults", "pivotal_workstation::git_scripts", "pivotal_workstation::global_environment_variables", "pivotal_workstation::heroku_toolbelt", "pivotal_workstation::homebrew", "pivotal_workstation::imagemagick", "pivotal_workstation::iterm2", "pivotal_workstation::java", "pivotal_workstation::memcached", "pivotal_workstation::menumeters", "pivotal_workstation::mongodb", "pivotal_workstation::mysql", "pivotal_workstation::nginx", "pivotal_workstation::node_js", "pivotal_workstation::postgres", "pivotal_workstation::qt", "pivotal_workstation::redis", "pivotal_workstation::rvm", "pivotal_workstation::skype", "pivotal_workstation::sshd_on", "pivotal_workstation::sublime_text", "pivotal_workstation::tmux", "pivotal_workstation::unix_essentials", "pivotal_workstation::user_owns_usr_local", "pivotal_workstation::vim", "pivotal_workstation::vlc", "pivotal_workstation::workspace_directory"] from JSON
[2013-05-24T15:51:06-04:00] INFO: Run List is [recipe[pivotal_workstation::ack], recipe[pivotal_workstation::create_var_chef_cache], recipe[pivotal_workstation::git], recipe[pivotal_workstation::gitx], recipe[pivotal_workstation::git_config_global_defaults], recipe[pivotal_workstation::git_scripts], recipe[pivotal_workstation::global_environment_variables], recipe[pivotal_workstation::heroku_toolbelt], recipe[pivotal_workstation::homebrew], recipe[pivotal_workstation::imagemagick], recipe[pivotal_workstation::iterm2], recipe[pivotal_workstation::java], recipe[pivotal_workstation::memcached], recipe[pivotal_workstation::menumeters], recipe[pivotal_workstation::mongodb], recipe[pivotal_workstation::mysql], recipe[pivotal_workstation::nginx], recipe[pivotal_workstation::node_js], recipe[pivotal_workstation::postgres], recipe[pivotal_workstation::qt], recipe[pivotal_workstation::redis], recipe[pivotal_workstation::rvm], recipe[pivotal_workstation::skype], recipe[pivotal_workstation::sshd_on], recipe[pivotal_workstation::sublime_text], recipe[pivotal_workstation::tmux], recipe[pivotal_workstation::unix_essentials], recipe[pivotal_workstation::user_owns_usr_local], recipe[pivotal_workstation::vim], recipe[pivotal_workstation::vlc], recipe[pivotal_workstation::workspace_directory]]
[2013-05-24T15:51:06-04:00] INFO: Run List expands to [pivotal_workstation::ack, pivotal_workstation::create_var_chef_cache, pivotal_workstation::git, pivotal_workstation::gitx, pivotal_workstation::git_config_global_defaults, pivotal_workstation::git_scripts, pivotal_workstation::global_environment_variables, pivotal_workstation::heroku_toolbelt, pivotal_workstation::homebrew, pivotal_workstation::imagemagick, pivotal_workstation::iterm2, pivotal_workstation::java, pivotal_workstation::memcached, pivotal_workstation::menumeters, pivotal_workstation::mongodb, pivotal_workstation::mysql, pivotal_workstation::nginx, pivotal_workstation::node_js, pivotal_workstation::postgres, pivotal_workstation::qt, pivotal_workstation::redis, pivotal_workstation::rvm, pivotal_workstation::skype, pivotal_workstation::sshd_on, pivotal_workstation::sublime_text, pivotal_workstation::tmux, pivotal_workstation::unix_essentials, pivotal_workstation::user_owns_usr_local, pivotal_workstation::vim, pivotal_workstation::vlc, pivotal_workstation::workspace_directory]
[2013-05-24T15:51:06-04:00] INFO: Starting Chef Run for Michaels-MacBook-Pro.local
[2013-05-24T15:51:06-04:00] INFO: Running start handlers
[2013-05-24T15:51:06-04:00] INFO: Start handlers complete.
Compiling Cookbooks...

Recipe Compile Error in /Users/mike/cookbooks/dmg/resources/package.rb

ArgumentError

wrong number of arguments (2 for 1)

Cookbook Trace:

/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:in const_defined?' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:42:inbuild_from_file'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:208:in load_lwrp_resource' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:193:inload_lwrps_from_cookbook'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:192:in each' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:192:inload_lwrps_from_cookbook'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:120:in compile_lwrps' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:119:ineach'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:119:in compile_lwrps' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context/cookbook_compiler.rb:72:incompile'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/run_context.rb:86:in load' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:224:insetup_run_context'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:467:in do_run' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/client.rb:200:inrun'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:190:in run_chef_client' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/solo.rb:239:inrun_application'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/solo.rb:231:in loop' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application/solo.rb:231:inrun_application'
/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/application.rb:73:in run' /Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/chef-solo:25 /usr/bin/chef-solo:19:inload'
/usr/bin/chef-solo:19

Relevant File Content:

/Library/Ruby/Gems/1.8/gems/chef-11.4.4/bin/../lib/chef/resource/lwrp_base.rb:

35:
36: # Evaluates the LWRP resource file and instantiates a new Resource class.
37: def self.build_from_file(cookbook_name, filename, run_context)
38: rname = filename_to_qualified_string(cookbook_name, filename)
39:
40: # Add log entry if we override an existing light-weight resource.
41: class_name = convert_to_class_name(rname)
42>> if Resource.const_defined?(class_name, false)
43: old_class = Resource.send(:remove_const, class_name)
44: # CHEF-3432 -- Chef::Resource keeps a list of subclasses; need to
45: # remove old ones from the list when replacing.
46: resource_classes.delete(old_class)
47: Chef::Log.info("#{class_name} light-weight resource already initialized -- overriding!")
48: end
49:
50: resource_class = Class.new(self)
51:

[2013-05-24T15:51:06-04:00] ERROR: Running exception handlers
[2013-05-24T15:51:06-04:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-05-24T15:51:06-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-05-24T15:51:06-04:00] FATAL: ArgumentError: wrong number of arguments (2 for 1)

Update for Pivotal Sprout?

It looks like pivotal_workstation has been deprecated in favor of sprout. Not sure how this affects this project since the pivotal_workstation recipes are still available but probably not getting updated. I really appreciate the simplicity of solo_wizard and how easy it made it to set up a new machine. Thanks.

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.