Updated README, added knock, pckeyboardhack, skype, and updated sublime.

This commit is contained in:
Jeff Geerling 2014-02-13 16:26:10 -06:00
parent ad92f87f18
commit d592972e9e
6 changed files with 82 additions and 31 deletions

View file

@ -1,16 +1,16 @@
# Mac Development Ansible Playbook # Mac Development Ansible Playbook
This set of playbooks was originally cloned from [MWGriffin/ansible-playbooks](https://github.com/MWGriffin/ansible-playbooks), and basically installs all the software I use on my Mac for web and software development. Well, all the software I can get without using the Mac App Store, which can't be scripted. This set of playbooks is roughly based on [MWGriffin/ansible-playbooks](https://github.com/MWGriffin/ansible-playbooks), and installs and configures all the software I use on my Mac for web and software development, as well as my preferred settings for OS X. Some things in OS X are difficult to get scripted (notably, the Mac App Store in general), so I still have some manual installation steps, but at least it's all documented here.
This is very much a work in progress, and is mostly a means for me to document my current Mac's setup. I'll be adding settings and packages to this set of playbooks. This is a work in progress, and is mostly a means for me to document my current Mac's setup. I'll be adding settings and packages to this set of playbooks over time.
**Caveat**: This set of playbooks is not meant to be a great example of Ansible best practices. I just want to wrap my Mac's configuration in Ansible so I can quickly bring up a new development Mac without having to restore from a Time Machine backup. **Caveat**: This set of playbooks is not meant to be an example of Ansible best practices. I just want to wrap my Mac's configuration in Ansible so I can quickly install all the available development tools I use and need for my development purposes.
*See also*: [Battleschool](http://spencer.gibb.us/blog/2014/02/03/introducing-battleschool), which looks like it's aiming to be a more general solution than what I've built here. (It may be a better option if you don't want to fork this repo and hack it for your own workstation...). *See also*: [Battleschool](http://spencer.gibb.us/blog/2014/02/03/introducing-battleschool), which looks like it's aiming to be a more general solution than what I've built here. (It may be a better option if you don't want to fork this repo and hack it for your own workstation...).
## Installation ## Installation
1. Clone this repository somewhere. 1. Clone this repository somewhere on your local drive.
2. [Install Ansible](https://devopsu.com/guides/ansible-mac-osx.html). 2. [Install Ansible](https://devopsu.com/guides/ansible-mac-osx.html).
3. Run `ansible-playbook main.yml --ask-sudo-pass`. 3. Run `ansible-playbook main.yml --ask-sudo-pass`.
@ -18,39 +18,30 @@ This is very much a work in progress, and is mostly a means for me to document m
TODO: I will add a list of what's installed and configured by default here... TODO: I will add a list of what's installed and configured by default here...
## Additions coming soon ## Future additions
### General changes: ### Things that still need to be done manually
- Fix TODOs (idempotence, mostly - maybe just pass in a 'creates' variable) It's my hope that I can get the rest of these things wrapped up into Ansible playbooks soon, but for now, these steps need to be completed manually (assuming you already have Xcode and Ansible installed, and have run this playbook).
1. Install JJG-Term.terminal theme (double-click to install).
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 (keycode 53), using PCKeyboardHack.
6. Set trackpad tracking rate.
7. Set mouse tracking rate.
### Applications/packages to be added: ### Applications/packages to be added:
These are mostly direct download links, some are more difficult to install because of custom installers or other nonstandard install quirks:
- [MacVim](https://github.com/b4winckler/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mavericks.tbz) - [MacVim](https://github.com/b4winckler/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mavericks.tbz)
- iShowU HD - [iShowU HD](http://downloads.shinywhitebox.com/iShowU_HD_Pro_2.3.7.dmg)
- [MenuMeters](http://www.ragingmenace.com/software/menumeters/) - [MenuMeters](http://www.ragingmenace.com/software/menumeters/)
- TextMate 2 - [TextMate 2](https://api.textmate.org/downloads/release)
- PCKeyboardHack - [TimeMachineEditor](http://timesoftware.free.fr/timemachineeditor/TimeMachineEditor.zip)
- My [dotfiles](https://github.com/geerlingguy/dotfiles) - more to come...
- TimeMachineEditor
- Skype
- etc...
### Settings to be added:
- Terminal theme (Jeff's OSX)
- Sublime text settings/package manager
- Keyboard remappings (Caps Lock -> escape)
- Faster key repeat rates
- Desktop background
- Trackpad tracking rate
- Mouse tracking rate
- Finder settings:
- Disable "show warning before changing extension"
- Set default view to column mode
- Show hard disks, connected servers on desktop
- Translucent dock icon when app is hidden
- etc...
### Apps only available via the App Store ### Apps only available via the App Store
@ -70,7 +61,7 @@ I also use the following apps at least once or twice per week, but unfortunately
- Keynote - Keynote
- Numbers - Numbers
There are a couple other apps I'm leaving out of the list, like Microsoft Word, because I normally don't install them unless I need them; unfortunately, about once a year, I get a document that's so old/strange that I need Word or Powerpoint to open the file. There are a couple other apps I'm leaving out of the list, like Microsoft Word, because I normally don't install them unless I need them; unfortunately, about once a year, I get a document that's so old/strange that I need Word or Powerpoint to open the file. I wish people didn't use document layout and slide presentation applications to send me basic textual information :-/
## Ansible for DevOps ## Ansible for DevOps

14
apps/knock.yml Normal file
View file

@ -0,0 +1,14 @@
---
- hosts: all
connection: local
vars:
app_name: Knock
app_name_pretty: Knock
app_url: "http://knocktounlock.com/download"
installer_type: app
install_method: zip
downloads: ~/.ansible-downloads/
creates: /Applications/Knock.app
tasks:
- include: ../install/{{ install_method }}.yml

16
apps/pckeyboardhack.yml Normal file
View file

@ -0,0 +1,16 @@
---
- hosts: all
connection: local
vars:
app_name: PCKeyboardHack
app_name_pretty: PCKeyboardHack
app_url: "https://pqrs.org/macosx/keyremap4macbook/files/PCKeyboardHack-10.5.0.dmg"
installer_type: pkg
install_method: dmg
install_target: /Volumes/Macintosh\ HD
mount_path: /Volumes/PCKeyboardHack-10.5.0/
downloads: ~/.ansible-downloads/
creates: /Applications/PCKeyboardHack.app
tasks:
- include: ../install/{{ install_method }}.yml

15
apps/skype.yml Normal file
View file

@ -0,0 +1,15 @@
---
- hosts: all
connection: local
vars:
app_name: Skype
app_name_pretty: Skype
app_url: "http://www.skype.com/go/getskype-macosx.dmg"
installer_type: app
install_method: dmg
mount_path: /Volumes/Skype/
downloads: ~/.ansible-downloads/
creates: /Applications/Skype.app
tasks:
- include: ../install/{{ install_method }}.yml

View file

@ -1,4 +1,7 @@
--- ---
# Sublime Text.
# Note: Currently, to complete installation, you have to manually install
# Package Control; see: https://sublime.wbond.net/installation.
- hosts: all - hosts: all
connection: local connection: local
vars: vars:
@ -13,12 +16,21 @@
tasks: tasks:
- include: ../install/{{ install_method }}.yml - include: ../install/{{ install_method }}.yml
- name: Create symlink subl for Sublime Text's subl command - name: Create symlink subl for Sublime Text's subl command
file: src=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl dest=/usr/bin/subl state=link file: src=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl dest=/usr/bin/subl state=link
sudo: true sudo: true
- name: Create symlink sublime for Sublime Text's subl command - name: Create symlink sublime for Sublime Text's subl command
file: src=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl dest=/usr/bin/sublime state=link file: src=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl dest=/usr/bin/sublime state=link
sudo: true sudo: true
- name: Copy Sublime settings files.
copy: "src='../templates/sublime/{{ item }}' dest='~/Library/Application\ Support/Sublime\ Text 3/Packages/User/{{ item }}'"
sudo: no
with_items:
- "Default (OSX).sublime-keymap"
- "Package Control.sublime-settings"
- "Preferences.sublime-settings"
# - name: "Copy settings (example, don't use)." # - name: "Copy settings (example, don't use)."
# shell: cp -r init/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null # shell: cp -r init/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null

View file

@ -20,9 +20,12 @@
- include: apps/firefox.yml - include: apps/firefox.yml
- include: apps/handbrake.yml - include: apps/handbrake.yml
- include: apps/homebrew.yml - include: apps/homebrew.yml
- include: apps/knock.yml
# - include: apps/menumeters.yml # - include: apps/menumeters.yml
- include: apps/nvalt.yml - include: apps/nvalt.yml
- include: apps/pckeyboardhack.yml
- include: apps/sequel-pro.yml - include: apps/sequel-pro.yml
- include: apps/skype.yml
- include: apps/sublime.yml - include: apps/sublime.yml
- include: apps/tower.yml - include: apps/tower.yml
- include: apps/transmit.yml - include: apps/transmit.yml