Automated OS X provisioning
After quite a bit of work, I finally have a decent OS X provisioning system, capable of provisioning a blank OS X install (with Xcode and CLT) for development and everyday life.
Here it is:
zmwangx/dotfiles/provision. In case the path changes in the future and invalidates the aforementioned URL, here is the archived provisioning script at the current master. Of course the provisioning system is not a single script; it reads and executes modules from a
provision.d directory, which in turn links into other specialized parts of the system.
Highly modular due to the
provision.dstructure. New provisioning scripts for specialized tools can be added at any time without complicating the rest of the system.
Graceful failure and easy error recovery. For most failures, running the provision once more fixes the issues. This is especially helpful when GitHub get DDoS'ed and loads of downloads fail, e.g., last night, when I was sleeping with the provisioning system hard at work.
Very nice, colored console messages. Of course you'd expect that when half of the code is devoted to messaging...
Thus far tested on OS X 10.10 and 10.11. Works pretty well. Of course OS X provisioning (with so many impossible-to-automate tasks) is still a hell lot harder than Linux provisioning, but hopefully this system will safe me a considerable amount of time and trouble during my at-least-twice-a-year clean OS installation and beta testing in VMs.