Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
Last active December 12, 2015 09:28
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 AquaGeek/4751246 to your computer and use it in GitHub Desktop.
Save AquaGeek/4751246 to your computer and use it in GitHub Desktop.
New Workstation Setup
#!/bin/bash
if rvm --version 2>/dev/null; then
gem install soloist
else
sudo gem install soloist --no-ri --no-rdoc
fi
mkdir -p ~/cookbooks; cd ~/cookbooks
cat > soloistrc <<EOF
cookbook_paths:
- $PWD
recipes:
- pivotal_workstation::create_var_chef_cache
- pivotal_workstation::1password
- pivotal_workstation::chrome
- pivotal_workstation::adium
- pivotal_workstation::skype
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.git
fi
soloist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment