From 1aad10de63df2c5521f15917bf27cb4735ff034a Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 5 Dec 2016 16:08:30 -0600 Subject: [PATCH] Fixes #11: Use mas for Mac App Store automation. --- README.md | 42 +++++++++++++++++++----------------------- default.config.yml | 5 +++++ main.yml | 2 ++ requirements.yml | 1 + 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 410f7e5..d693455 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,20 @@ This is a work in progress, and is mostly a means for me to document my current Not everyone's development environment and preferred software configuration is the same. -You can override any of the defaults configured in `default.config.yml` by creating a `config.yml` file and setting the overrides in that file (e.g. create a customized list of `homebrew_installed_packages`). +You can override any of the defaults configured in `default.config.yml` by creating a `config.yml` file and setting the overrides in that file. For example, you can customize the installed packages and apps with something like: + + homebrew_installed_packages: + - cowsay + - git + - go + + mas_installed_app_ids: + - 443987910 # 1Password + - 498486288 # Quick Resizer + - 557168941 # Tweetbot + - 497799835 # Xcode + +Any variable can be overridden in `config.yml`; see the supporting roles' documentation for a complete list of available variables. ## Included Applications / Configuration (Default) @@ -101,12 +114,11 @@ It's my hope that I can get the rest of these things wrapped up into Ansible pla 1. Set JJG-Term as the default Terminal theme (it's installed, but not set as default automatically). 2. Install [Sublime Package Manager](http://sublime.wbond.net/installation). - 3. Install all the Mac App Store Apps (see below). - 4. Install all the apps that aren't yet in this setup (see below). - 5. Remap Caps Lock to Escape (requires macOS Sierra 10.12.1+). - 6. Set trackpad tracking rate. - 7. Set mouse tracking rate. - 8. Configure extra Mail and/or Calendar accounts (e.g. Google, Exchange, etc.). + 3. Install all the apps that aren't yet in this setup (see below). + 4. Remap Caps Lock to Escape (requires macOS Sierra 10.12.1+). + 5. Set trackpad tracking rate. + 6. Set mouse tracking rate. + 7. Configure extra Mail and/or Calendar accounts (e.g. Google, Exchange, etc.). ### Applications/packages to be added: @@ -127,22 +139,6 @@ These are mostly direct download links, some are more difficult to install becau git clone git://github.com/scrooloose/nerdtree.git ``` -### Apps only available via the App Store - -I also use the following apps at least once or twice per week, but the Mac App Store is harder to control via CLI, so for now I have to manually install all of these apps from within the App Store application (see [Issue #11](https://github.com/geerlingguy/mac-dev-playbook/issues/11)). - - - Tweetbot - - RadarScope - - Pixelmator - - Quick Resizer - - 1Password - - DaisyDisk - - Byword - - Aperture - - Pages - - Keynote - - Numbers - ## Testing the Playbook Many people have asked me if I often wipe my entire workstation and start from scratch just to test changes to the playbook. Nope! Instead, I posted instructions for how I build a [Mac OS X VirtualBox VM](https://github.com/geerlingguy/mac-osx-virtualbox-vm), on which I can continually run and re-run this playbook to test changes and make sure things work correctly. diff --git a/default.config.yml b/default.config.yml index 6ba05eb..816c56f 100644 --- a/default.config.yml +++ b/default.config.yml @@ -80,3 +80,8 @@ homebrew_cask_apps: - vagrant - virtualbox - vlc + +# See `geerlingguy.mas` role documentation for usage instructions. +mas_installed_app_ids: [] +mas_email: "" +mas_password: "" diff --git a/main.yml b/main.yml index bddb0e3..a3107ae 100644 --- a/main.yml +++ b/main.yml @@ -13,6 +13,8 @@ roles: - geerlingguy.homebrew - geerlingguy.dotfiles + - name: geerlingguy.mas + when: mas_installed_app_ids tasks: - include: tasks/ansible-setup.yml diff --git a/requirements.yml b/requirements.yml index 4cbf04a..a64b149 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,3 +1,4 @@ --- - name: geerlingguy.dotfiles - name: geerlingguy.homebrew +- name: geerlingguy.mas