my dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Alpha Chen 89a5c3268f
[scripts] Change default timeout of ssh-add
9 years ago
.bundle [bundler] Update settings for `bundle gem` 9 years ago
.config/powerline [powerline] Move Powerline config into .config 9 years ago
.git_templates/hooks [meta] Stop using stow 10 years ago
.hammerspoon [hammerspoon] Clean up init 9 years ago
.pentadactyl/plugin [meta] Stop using stow 10 years ago
.ssh [ssh] Update authorized_keys 9 years ago
.vim [vim] Update source for CtrlP repo 9 years ago
Alfred 2/Alfred.alfredpreferences [alfred] Update Giphy workflow 9 years ago
ansible [bitbar] Initial commit of BitBar stuff 9 years ago
bin [bin] Add script for moving crosswords 10 years ago
bitbar [bitbar] Fix OneBusAway script 9 years ago
dnsmasq [dnsmasq] Blacklist adzmath 9 years ago
osx [meta] Synchronize some app prefs and OS X colors 10 years ago
resolver Fix resolver/dev 10 years ago
scripts [scripts] Change default timeout of ssh-add 9 years ago
src [prezto] Fix history-substring-searching 9 years ago
.bash_profile [meta] Stop using stow 10 years ago
.bashrc [meta] Stop using stow 10 years ago
.gemrc [meta] Stop using stow 10 years ago
.gitconfig [git] Recursively push submodules 9 years ago
.gitignore [meta] Stop using stow 10 years ago
.gitmodules [vim] Update source for CtrlP repo 9 years ago
.inputrc [meta] Stop using stow 10 years ago
.irbrc [meta] Stop using stow 10 years ago
.pentadactylrc [pentadactyl] Add command for entering Reader view 9 years ago
.pryrc [meta] Stop using stow 10 years ago
.tmux.conf [tmux] Assume 2.x 9 years ago
.vimrc [vim] Clean up .vimrc 9 years ago
Alpha.terminal [terminal] Update font settings 9 years ago
LICENSE Initial commit 10 years ago
README.md [meta] Ansible 2 9 years ago
Rakefile [bitbar] Initial commit of BitBar stuff 9 years ago
gitignore [git] Ignore all .envrc files 9 years ago

README.md

Dotfiles

This repo contains both my dotfiles as well as Ansible playbooks to provision new machines.

Use at your own risk. Untested except on my own El Capitan installs.

Playbooks

  • bootstrap.yml: SSH and Homebrew setup
  • main.yml: Pretty much everything else
  • imac.yml: For quieting down the broken HDD fan on my iMac
  • macbook_pro.yml: Remap Caps Lock to Control on the laptop

Usage

First, some steps need to be performed on the remote machine that I couldn't figure out how to automate:

  • Enable Remote Login in System Preferences -> Sharing.
  • Install the command line developer tools: xcode-select --install. (It looks like the Homebrew installer should be able to handle this, but I haven't been able to get it to work headless.)
  • Install Xcode: open 'https://itunes.apple.com/us/app/xcode/id497799835?mt=12'
  • Accept the Xcode license: sudo xcodebuild -license
  • Accept the sudo disclaimer: sudo -v

On the control machine:

brew install ansible
git clone --recursive git@github.com:kejadlen/dotfiles
cd dotfiles/ansible

echo HOST > hosts.private

ansible-playbook bootstrap.yml --ask-pass --ask-become-pass
ansible-playbook main.yml --ask-become-pass

A couple items that I haven't gotten around to automating yet that need to be manually run post-provisioning:

# Apply personal Terminal settings
open ~/.dotfiles/Alpha.terminal

# Symlink ~/.dotfiles to Dropbox
rm -rf ~/.dotfiles
ln -s ~/Dropbox/dotfiles ~/.dotfiles

# Add private SSH keys
ruby ~/.dotfiles/scripts/setup_ssh_keys.rb

Provisioning Locally

You can also use this to provision a machine by itself, although this won't be able to copy over OS X application settings, for obvious reasons.

# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install ansible
brew install ansible

# Clone dotfiles
git clone --recursive https://github.com/kejadlen/dotfiles.git ~/.dotfiles

# Run Ansible
cd ~/.dotfiles/ansible
echo localhost > hosts.private
ansible-playbook main.yml --ask-pass --ask-become-pass

Development

Ansible tags are indispensible when tweaking the config:

- command: echo debug
  tags: debug
ansible-playbook main.yml --ask-become-pass --tags=debug

TODO

See issues.