Skip to content

Instantly share code, notes, and snippets.

@robb1e
Last active October 10, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robb1e/3742585 to your computer and use it in GitHub Desktop.
Save robb1e/3742585 to your computer and use it in GitHub Desktop.
Chef Workstation
pushd `pwd`
if rvm --version 2>/dev/null; then
gem install soloist
else
sudo gem install soloist
fi
mkdir -p ~/cookbooks; cd ~/cookbooks
cat > ~/soloistrc <<EOF
cookbook_paths:
- $PWD
recipes:
- "pivotal_workstation::bash_it"
- "pivotal_workstation::create_var_chef_cache"
- "pivotal_workstation::java"
- "pivotal_workstation::sshd_on"
- "pivotal_workstation::screen_sharing_app"
- "pivotal_workstation::skype"
- "pivotal_workstation::shiftit"
- "pivotal_workstation::firefox"
- "pivotal_workstation::inputrc"
- "pivotal_workstation::locate_on"
- "pivotal_workstation::dropbox"
- "pivotal_workstation::chrome"
- "pivotal_workstation::mouse_locator"
- "pivotal_workstation::defaults_fast_key_repeat_rate"
- "pivotal_workstation::menumeters"
- "pivotal_workstation::bettertouchtool"
- "pivotal_workstation::bash_it"
- "pivotal_workstation::git_config_global_defaults"
- "pivotal_workstation::git_scripts"
- "pivotal_workstation::gitx"
- "pivotal_workstation::global_environment_variables"
- "pivotal_workstation::homebrew"
- "pivotal_workstation::iterm2"
- "pivotal_workstation::unix_essentials"
- "pivotal_workstation::vim"
- "pivotal_workstation::workspace_directory"
- "pivotal_workstation::rvm"
- "pivotal_workstation::gem_setup"
- "pivotal_workstation::postgres"
- "pivotal_workstation::qt"
EOF
if [[ -d pivotal_workstation ]]; then
cd pivotal_workstation && git pull && cd ..
else
git clone https://github.com/pivotal/pivotal_workstation.git
fi
if [[ -d dmg ]]; then
cd dmg && git pull && cd ..
else
git clone https://github.com/opscode-cookbooks/dmg
fi
soloist
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment