diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-08-25 08:16:55 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-08-25 08:16:55 -0700 |
commit | 36c52bc3a484d4a8508536b037ed767042c3c192 (patch) | |
tree | 8855329d8d68646a55073f543bb4710ed881d32a /source/blog | |
parent | 357e0e45ffdeaec8bd86c9c9b345528186f46754 (diff) | |
download | my_new_personal_website-36c52bc3a484d4a8508536b037ed767042c3c192.tar.xz my_new_personal_website-36c52bc3a484d4a8508536b037ed767042c3c192.zip |
20150825 Automated OS X provisioning
Diffstat (limited to '')
-rw-r--r-- | source/blog/2015-08-25-automated-os-x-provisioning.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blog/2015-08-25-automated-os-x-provisioning.md b/source/blog/2015-08-25-automated-os-x-provisioning.md new file mode 100644 index 00000000..fd282238 --- /dev/null +++ b/source/blog/2015-08-25-automated-os-x-provisioning.md @@ -0,0 +1,20 @@ +--- +title: "Automated OS X provisioning" +date: 2015-08-25T08:16:44-07:00 +date-display: August 25, 2015 +--- +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`](https://github.com/zmwangx/dotfiles/blob/master/provision). In case the path changes in the future and invalidates the aforementioned URL, [here](https://github.com/zmwangx/dotfiles/blob/d8e20b731583d69b380d422c8788f61cd4a4e211/provision) 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`](https://github.com/zmwangx/dotfiles/tree/master/provision.d) directory, which in turn links into other specialized parts of the system. + +Selling points: + +* Highly modular due to the `provision.d` structure. 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](https://web.archive.org/web/20150825150044/https://status.github.com/messages), 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. + +![`provision` at work. Provisioning a blank machine is probably the only time I need Terminal.app.](/img/20150825-osx-provisioning-system.png) |