documentcloud/documentcloud-vagrant — pull request #3 by nathanstitt (2012-10-15 16:20:14+00:00)
Title: Complete provisioning scripts for Vagrant

I've expanded the existing scripts to completely provision a DocumentCloud development environment.

The main script is now 'runner'. It's written in ruby and relies on a Script class (in script.rb), which is a modified version of a small library I'd written some time ago. It will run the scripts in parallel if possible, while logging their output and failures.

Areas that could be improved:

* I've tested it a decent bit, but it takes a long time (depending on network speed) to do a full run due to the base ubuntu box being out of date with it's updates. If we can update that it will make it much faster. I've got a testing one I've prepared if that'd be helpful.
* I'm seeding a test user with a login: 'test@example.com', pw: 'documentcloud' I didn't want to use a real email address without making sure it'd be ok first. That's set in the top of scripts/runner
* The scripts don't handle failures well. If one of the intermediate commands in the scripts fail, they continue running, then exit with a 0 status. Then the runner doesn't know anything went wrong and continues without logging. The only way to fix this one is to completely redo the scripts. I'm not sure it's worth the effort, especially since they are working now.