Merge branch 'vagrant'

pull/28/head
Alpha Chen 10 years ago
commit 5943fd3a1c

2
.gitignore vendored

@ -6,3 +6,5 @@ pentadactyl/.pentadactyl/info
ssh/.ssh/*_rsa
ssh/.ssh/known_hosts
vim/.vim/.netrwhist
vim/.vim/.scratch
vim/.vim/.VimballRecord

6
.gitmodules vendored

@ -58,9 +58,6 @@
[submodule ".vim/bundle/ctrlp"]
path = vim/.vim/bundle/ctrlp
url = git://github.com/kien/ctrlp.vim.git
[submodule ".vim/bundle/sensible"]
path = vim/.vim/bundle/sensible
url = git://github.com/tpope/vim-sensible.git
[submodule ".vim/bundle/base16"]
path = vim/.vim/bundle/base16
url = git://github.com/chriskempson/base16-vim.git
@ -115,3 +112,6 @@
[submodule "vim/.vim/bundle/rust.vim"]
path = vim/.vim/bundle/rust.vim
url = https://github.com/wting/rust.vim.git
[submodule "vim/.vim/bundle/incsearch.vim"]
path = vim/.vim/bundle/incsearch.vim
url = https://github.com/haya14busa/incsearch.vim

@ -13,12 +13,27 @@
<key>plusSpaces</key>
<true/>
<key>text</key>
<string>Goodreads</string>
<string>Search Goodreads for '{query}'</string>
<key>url</key>
<string>https://www.goodreads.com/search?utf8=%E2%9C%93&amp;query={query}</string>
<key>utf8</key>
<true/>
</dict>
<key>1B744577-C743-466D-9B65-8A45F55F7BE3</key>
<dict>
<key>enabled</key>
<true/>
<key>keyword</key>
<string>inbox</string>
<key>plusSpaces</key>
<false/>
<key>text</key>
<string>Search Google Inbox for '{query}'</string>
<key>url</key>
<string>https://inbox.google.com/search/{query}?pli=1</string>
<key>utf8</key>
<true/>
</dict>
<key>491B807D-42B3-4CB4-861F-2ADF20727F53</key>
<dict>
<key>enabled</key>

@ -51,6 +51,13 @@ Ansible tags are indispensible when tweaking the config.
ansible-playbook main.yml --ask-sudo-pass --tags debug
```
# Vagrant
``` shell
vagrant up
ansible vagrant -m ping
```
# TODO
See [issues](https://github.com/kejadlen/dotfiles/issues).

122
ansible/Vagrantfile vendored

@ -0,0 +1,122 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
# If true, then any SSH connections made will enable agent forwarding.
# Default value: false
# config.ssh.forward_agent = true
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Don't boot with headless mode
# vb.gui = true
#
# # Use VBoxManage to customize the VM. For example to change memory:
# vb.customize ["modifyvm", :id, "--memory", "1024"]
# end
#
# View the documentation for the provider you're using for more
# information on available options.
# Enable provisioning with CFEngine. CFEngine Community packages are
# automatically installed. For example, configure the host as a
# policy server and optionally a policy file to run:
#
# config.vm.provision "cfengine" do |cf|
# cf.am_policy_hub = true
# # cf.run_file = "motd.cf"
# end
#
# You can also configure and bootstrap a client to an existing
# policy server:
#
# config.vm.provision "cfengine" do |cf|
# cf.policy_server_address = "10.0.2.15"
# end
# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in
# the file default.pp in the manifests_path directory.
#
# config.vm.provision "puppet" do |puppet|
# puppet.manifests_path = "manifests"
# puppet.manifest_file = "default.pp"
# end
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
#
# config.vm.provision "chef_solo" do |chef|
# chef.cookbooks_path = "../my-recipes/cookbooks"
# chef.roles_path = "../my-recipes/roles"
# chef.data_bags_path = "../my-recipes/data_bags"
# chef.add_recipe "mysql"
# chef.add_role "web"
#
# # You may also specify custom JSON attributes:
# chef.json = { mysql_password: "foo" }
# end
# Enable provisioning with chef server, specifying the chef server URL,
# and the path to the validation key (relative to this Vagrantfile).
#
# The Opscode Platform uses HTTPS. Substitute your organization for
# ORGNAME in the URL and validation key.
#
# If you have your own Chef Server, use the appropriate URL, which may be
# HTTP instead of HTTPS depending on your configuration. Also change the
# validation key to validation.pem.
#
# config.vm.provision "chef_client" do |chef|
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
# chef.validation_key_path = "ORGNAME-validator.pem"
# end
#
# If you're using the Opscode platform, your validator client is
# ORGNAME-validator, replacing ORGNAME with your organization name.
#
# If you have your own Chef Server, the default validation client name is
# chef-validator, unless you changed the configuration.
#
# chef.validation_client_name = "ORGNAME-validator"
end

@ -0,0 +1,3 @@
- hosts: all
roles:
- dotfiles

@ -1,2 +1,5 @@
[local]
localhost ansible_connection=local
[test]
vagrant ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user=vagrant ansible_ssh_private_key_file=/Users/alpha/.vagrant.d/insecure_private_key

@ -1,17 +1,30 @@
---
- homebrew: name=stow state=present
# when: ansible_distribution == "MacOSX"
# - apt: pkg=stow state=present
# when: ansible_distribution == "Debian"
when: ansible_distribution == "MacOSX"
- apt: pkg={{ item }} state=present
with_items:
- git
- stow
sudo: True
when: ansible_os_family == "Debian"
- git:
repo: https://github.com/kejadlen/dotfiles.git
depth: 1
dest: ~/.dotfiles
recursive: yes
force: no
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} {{ item }}
with_items: stow
tags: stow
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} osx
when: ansible_distribution == "MacOSX"
tags: stow
- file:
src: "{{ ansible_env.HOME }}/.dotfiles/{{ item.key }}"
dest: "{{ ansible_env.HOME}}/{{ item.value }}"
state: link
with_dict: ln
- local_action: command ruby scripts/setup_ssh_keys.rb
# when: ansible_domain == "local"

@ -1,6 +1,7 @@
---
# - git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles force=no
- include: dotfiles.yml
tags: dotfiles
- include: powerline.yml
- include: prezto.yml
- include: ssh.yml
when: ansible_domain == "local"

@ -1,3 +1,10 @@
---
- homebrew: name=python state=present
when: ansible_distribution == "MacOSX"
- apt: name={{ item }} state=present
sudo: True
with_items:
- python
- python-pip
when: ansible_os_family == "Debian"
- command: pip install --user -e ~/.dotfiles/src/powerline

@ -1,5 +1,9 @@
---
- homebrew: name=zsh state=present
when: ansible_distribution == "MacOSX"
- apt: name=zsh state=present
sudo: True
when: ansible_os_family == "Debian"
- file:
src: "{{ ansible_env.HOME }}/.dotfiles/src/prezto"
dest: "{{ ansible_env.HOME}}/.zprezto"

@ -0,0 +1,8 @@
---
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} ssh
tags: stow
when: ansible_domain == "local"
- local_action: command ruby scripts/setup_ssh_keys.rb
when: ansible_domain == "local"

@ -3,9 +3,7 @@ stow:
- git
- pentadactyl
- ruby
- ssh
- tmux
- vim
- osx
ln:
git/.gitignore: .gitignore

@ -36,3 +36,6 @@ Host home.kejadlen.net
Host chime.prgmr.com
User kejadlen
Host 127.0.0.1
StrictHostKeyChecking no

@ -101,7 +101,7 @@ unbind r
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux.conf'
# TODO Figure out why this is order dependent
source-file ~/.tmux.conf.local
if-shell "[[ -e ~/.tmux.conf.local ]]" "source-file ~/.tmux.conf.local"
source-file ~/.dotfiles/src/tmux-colors-solarized/tmuxcolors-256.conf
source-file ~/.dotfiles/src/powerline/powerline/bindings/tmux/powerline.conf

@ -1 +0,0 @@
tComment.vba: call delete('C:\Users\alphach\vimfiles/doc/tComment.txt')|call delete('C:\Users\alphach\vimfiles/plugin/tComment.vim')|call delete('C:\Users\alphach\vimfiles/autoload/tcomment.vim')

@ -1,5 +0,0 @@
PIP (Save OR Preserve OR Site OR Historic OR "#PreserveDMV" OR landmark OR PartnersinPres OR "Partners in Preservation" OR Amex OR AmericanExpress OR "American Express" OR "National Trust" OR "@PresNation" OR Preservation OR Grant OR Grants OR Win OR Vote OR Cast OR Ballot OR "@PartnersinPres" OR "@AmericanExpress" OR "Partners in Pres" OR "#AspinHill" OR "#AllSoulsUUDC" OR "#ArlingtonHouse" OR "#AthenaeumNVFAA" OR "#COCanal" OR "#CarterWoodson" OR "#clarabarton" OR "#ColvinRunMill" OR "#CongCemetery" OR "#DarbyGeneral" OR "#DOaksPark" OR "#GeorgeMasonMem" OR "#Greenbelttheatre" OR "#GUObservatory" OR "#LAMBPCS" OR "#LivingClassrooms" OR MetroAMEC OR "#MountVernon" OR "#NMWA" OR "#SixthandI" OR "#TeatroGALA" OR "#USMCMemorial" OR "#WNCathedral" OR "@MoCoHumane" OR "@allsoulsuudc" OR "@ArlingtonNPS" OR "@AthenaeumNVFAA" OR "@WoodsonNPS" OR "@CivilWarMed" OR "@fairfaxparks" OR "@CongCemetery" OR "@MontgomeryParks" OR "@DOaksPark" OR "@cityofgreenbelt" OR "@LAMBPCS" OR "@livingclassroom" OR "@MetropolitanAME" OR "@VisitMtVernon" OR "@WomenInTheArts" OR "@SixthandI" OR "@TeatroGALA" OR "@NPSGWMP" OR "@WNCathedral" OR "Aspin Hill" OR "Aspin Hill Kennel" OR "Aspin Hill Memorial Park" OR "All Souls Church Unitarian" OR "All Souls Church" OR "All Souls Unitarian" OR "All Souls D.C." OR "All Souls DC" OR "Arlington House" OR Athenaeum OR "Athenaeum NVFAA" OR "C&O Canal" OR "C&O Abner" OR "C&O Cloud House" OR (C AND "O Canal") OR (C AND "O Abner") OR (C AND "O Cloud House") OR "Abner Cloud House" OR "Carter G. Woodson Home" OR "Carter G Woodson Home" OR "Woodson Home" OR "Carter G Home" OR "Carter G. Home" OR "Clara Barton's Missing Soldiers Office" OR "Clara Bartons Missing Soldiers Office" OR "Clara Barton" OR "Colvin Run Mill" OR "Congressional Cemetery" OR "Con Cemetery" OR "Darby Store" OR "Darby General Store" OR "Darby General" OR "Dumbarton Oaks Park" OR "Dumbarton Oaks" OR "Dumbarton Park" OR Dumbarton OR "Metropolitan AME" OR "Metro AME" OR "Mount Vernon" OR "Mt. Vernon" OR "Mt Vernon" OR "Tivoli Square")
Win ("#AspinHill" OR "#AllSoulsUUDC" OR "#ArlingtonHouse" OR "#AthenaeumNVFAA" OR "#COCanal" OR "#CarterWoodson" OR "#clarabarton" OR "#ColvinRunMill" OR "#CongCemetery" OR "#DarbyGeneral" OR "#DOaksPark" OR "#GeorgeMasonMem" OR "#Greenbelttheatre" OR "#GUObservatory" OR "#LAMBPCS" OR "#LivingClassrooms" OR MetroAMEC OR "#MountVernon" OR "#NMWA" OR "#SixthandI" OR "#TeatroGALA" OR "#USMCMemorial" OR "#WNCathedral" OR "#MeridianHill" OR "@MoCoHumane" OR "@allsoulsuudc" OR "@ArlingtonNPS" OR "@AthenaeumNVFAA" OR "@WoodsonNPS" OR "@CivilWarMed" OR "@fairfaxparks" OR "@CongCemetery" OR "@MontgomeryParks" OR "@DOaksPark" OR "@cityofgreenbelt" OR "@LAMBPCS" OR "@livingclassroom" OR "@MetropolitanAME" OR "@VisitMtVernon" OR "@WomenInTheArts" OR "@SixthandI" OR "@TeatroGALA" OR "@NPSGWMP" OR "@WNCathedral" OR "@Georgetown" OR "Aspin Hill" OR "Aspin Hill Kennel" OR "Aspin Hill Memorial Park" OR "All Souls Church Unitarian" OR "All Souls Church" OR "All Souls Unitarian" OR "All Souls D.C." OR "All Souls D.C" OR "All Souls DC" OR "Arlington House" OR Athenaeum OR "Athenaeum NVFAA" OR "C&O Canal" OR "C&O Abner" OR "C&O Cloud House" OR (C AND "O Canal") OR (C AND "O Abner") OR (C AND "O Cloud House") OR "Abner Cloud House" OR "Carter G. Woodson Home" OR "Carter G Woodson Home" OR "Woodson Home" OR "Carter G Home" OR "Carter G. Home" OR "Clara Barton's Missing Soldiers Office" OR "Clara Bartons Missing Soldiers Office" OR "Clara Barton" OR "Colvin Run Mill" OR "Congressional Cemetery" OR "Con Cemetery" OR "Darby Store" OR "Darby General Store" OR "Darby General" OR "Dumbarton Oaks Park" OR "Dumbarton Oaks" OR "Dumbarton Park" OR Dumbarton OR "Metropolitan AME" OR "Metro AME" OR "Mount Vernon" OR "Mount Vernon" OR "Mt Vernon" OR "Tivoli Square" OR "GALA Hispanic Theatre" OR "GALA Hispanic Theater" OR "GALA Theatre" OR "GALA Theater" OR "USMC Memorial" OR "USMC War Statue" OR "Iwo Jima" OR "US Marine Corps War Memorial" OR "USMC Memorial" OR "USMC Bronze" OR "@COcanalNPS" OR "C & O Canal" OR "C & O Abner" OR "C & O Cloud House")
Vote ("#AspinHill" OR "#AllSoulsUUDC" OR "#ArlingtonHouse" OR "#AthenaeumNVFAA" OR "#COCanal" OR "#CarterWoodson" OR "#clarabarton" OR "#ColvinRunMill" OR "#CongCemetery" OR "#DarbyGeneral" OR "#DOaksPark" OR "#GeorgeMasonMem" OR "#Greenbelttheatre" OR "#GUObservatory" OR "#LAMBPCS" OR "#LivingClassrooms" OR MetroAMEC OR "#MountVernon" OR "#NMWA" OR "#SixthandI" OR "#TeatroGALA" OR "#USMCMemorial" OR "#WNCathedral" OR "#MeridianHill" OR "@MoCoHumane" OR "@allsoulsuudc" OR "@ArlingtonNPS" OR "@AthenaeumNVFAA" OR "@WoodsonNPS" OR "@CivilWarMed" OR "@fairfaxparks" OR "@CongCemetery" OR "@MontgomeryParks" OR "@DOaksPark" OR "@cityofgreenbelt" OR "@LAMBPCS" OR "@livingclassroom" OR "@MetropolitanAME" OR "@VisitMtVernon" OR "@WomenInTheArts" OR "@SixthandI" OR "@TeatroGALA" OR "@NPSGWMP" OR "@WNCathedral" OR "@Georgetown" OR "Aspin Hill" OR "Aspin Hill Kennel" OR "Aspin Hill Memorial Park" OR "All Souls Church Unitarian" OR "All Souls Church" OR "All Souls Unitarian" OR "All Souls D.C." OR "All Souls D.C" OR "All Souls DC" OR "Arlington House" OR Athenaeum OR "Athenaeum NVFAA" OR "C&O Canal" OR "C&O Abner" OR "C&O Cloud House" OR (C AND "O Canal") OR (C AND "O Abner") OR (C AND "O Cloud House") OR "Abner Cloud House" OR "Carter G. Woodson Home" OR "Carter G Woodson Home" OR "Woodson Home" OR "Carter G Home" OR "Carter G. Home" OR "Clara Barton's Missing Soldiers Office" OR "Clara Bartons Missing Soldiers Office" OR "Clara Barton" OR "Colvin Run Mill" OR "Congressional Cemetery" OR "Con Cemetery" OR "Darby Store" OR "Darby General Store" OR "Darby General" OR "Dumbarton Oaks Park" OR "Dumbarton Oaks" OR "Dumbarton Park" OR Dumbarton OR "Metropolitan AME" OR "Metro AME" OR "Mount Vernon" OR "Mount Vernon" OR "Mt Vernon" OR "Tivoli Square" OR "GALA Hispanic Theatre" OR "GALA Hispanic Theater" OR "GALA Theatre" OR "GALA Theater" OR "USMC Memorial" OR "USMC War Statue" OR "Iwo Jima" OR "US Marine Corps War Memorial" OR "USMC Memorial" OR "USMC Bronze" OR "@COcanalNPS" OR "C & O Canal" OR "C & O Abner")
"Icon Mann" ("@BET" OR "@CENTRICTV" OR "28 Men of Change" OR "#28menofchange" OR "Men of Change" OR "#Iconman" OR "Icon Man" OR "#Iconmann" OR "#BETIconMANN" OR "#28MOC" OR "Man of Change" OR "Nnamdi Asomugha" OR Asomugha OR "@AsomughaFndn" OR "Dr. Robert Gore" OR "Louis Carr" OR "Ed Lewis" OR "Edward T. Lewis" OR "Courtney Hollowell" OR "Marcus Samuelsson" OR "@MarcusCooks" OR "Dr. Steve Perry" OR "@DrStevePerry" OR "Ron Finley" OR "@RonFinleyHQ" OR "Swizz Beatz" OR "@THEREALSWIZZZ" OR "Ndaba Mandela" OR "@NdabaMandela" OR "Steve Pemberton" OR "Charles Jenkins" OR "@CharlesJenkins7" OR "@thejenkinsguy22" OR "Lonnie Bunch" OR "Lonnie Bunch III" OR "Ambassador Ron Kirk" OR "Ron Kirk" OR "Dr. Robert Ross" OR "Robert Ross" OR "Robert K. Ross" OR "@CalEndow" OR "DeVon Franklin" OR "@DeVonFranklin" OR "Nile Rodgers" OR "@nilerodgers" OR "Ray McGuire" OR "Raymond McGuire" OR "Sanford Biggers" OR "@noshun" OR "Wayne Brady" OR "@waynebrady" OR "Steve McQueen" OR "@McQueeninchains" OR "Lee Daniels" OR "Forest Whitaker" OR "@ForestWhitaker" OR "Leland Melvin" OR "@Astro_Flow" OR "Nick Cannon" OR "@NickCannon" OR "Steve Harvey" OR "@IAmSteveHarvey")
"Dairy Free" ("Nancys" OR amande OR "almond breeze" OR "blue diamond" OR "so delicious" OR WholeSoy OR "nu lait" OR "So Soy" OR "So Coconut milk" OR "trader joe's" OR nogurt OR "trader joe" OR "trader jo's" OR "almond dream" OR "dairy free" OR "Silk Live" OR "Dean Foods" OR WildWood OR Soyogurt OR Arrowroot OR "Almond Dream" OR "so delicious" OR "turtle mountain" OR "almond milk" OR "coconut milk" OR "soy milk" OR "hemp milk" OR silk OR "silk soy milk" OR westsoy OR "west soy" OR edensoy OR "almond breeze" OR "blue diamond" OR "rice dream" OR "rice milk" OR "pacific natural foods" OR pacific OR "so delicious" OR "turtle mountain" OR "dairy free" OR "coconut bliss" OR tofutti OR cuties OR "purely decadent" OR "double rainbow" OR "almond dream" OR "organic rice divine" OR "coconut bliss" OR "yours truly" OR "dream kreme" OR "omega cream" OR sorbet OR "Luna & Larrys" OR "Almond Dream" OR "Rice Dream" OR Tempt OR "so delicious" OR "turtle mountain" OR mimiccreme OR soygo OR "coconut milk" OR "soy creamer" OR "wildwood soy" OR "pacific foods" OR "pacific foods blenders" OR "Trader Joe's" OR "Trader Joes" OR "Taam Tov")

@ -0,0 +1 @@
Subproject commit f915ef59df7e538ea02f6b30b7d5894688ebc6c7

@ -1 +0,0 @@
Subproject commit 64aa12b07b0be90a8e98bc7be1b5faac4ac873a4

@ -81,6 +81,7 @@ set fileformat=unix
" reading
set linebreak
set autoread
" set ttyfast
set list
let &listchars = "tab:\u21e5 ,trail:\u2423,extends:\u21c9,precedes:\u21c7,nbsp:\u00b7"

Loading…
Cancel
Save