Skip to content

Commit

Permalink
Remove unused staff && add vagrant file && ansible playbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
artofhuman committed Aug 22, 2016
1 parent b4bc8ef commit feb94b1
Show file tree
Hide file tree
Showing 12 changed files with 100 additions and 37 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
playbook.retry
2 changes: 2 additions & 0 deletions Makefile
@@ -0,0 +1,2 @@
install:
ansible-playbook playbook.yml -i local
37 changes: 37 additions & 0 deletions Vagrantfile
@@ -0,0 +1,37 @@
VAGRANT_API_VERSION = 2

Vagrant.configure(VAGRANT_API_VERSION) do |config|
#config.vm.box = 'ubuntu/xenial64'
config.vm.box = 'ubuntu/trusty64'
config.vm.box_check_update = false

config.ssh.forward_agent = true

config.vm.network 'private_network', type: 'dhcp'

#config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder '~/code/', '/vagrant', type: 'nfs'
#config.vm.synced_folder '~/.dotfiles/', '/home/vagrant/.dotfiles', type: 'nfs'

config.vm.provider 'virtualbox' do |vb|
vb.memory = '2048'
end

config.vm.provision 'dotfiles-fetch', type: 'shell' do |shell|
shell.privileged = false
shell.inline = <<-SHELL
sudo apt-get update
sudo apt-get install -y git
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
ssh -T git@github.com
git clone git@github.com:justcxx/dotfiles.git ~/.dotfiles
SHELL
end

config.vm.provision 'ansible_local' do |ansible|
ansible.playbook = '/home/vagrant/.dotfiles/playbook.yml'
ansible.tags = ENV['TAGS']
end
end
15 changes: 0 additions & 15 deletions bin/dot

This file was deleted.

9 changes: 0 additions & 9 deletions git/completion.zsh

This file was deleted.

1 change: 1 addition & 0 deletions local
@@ -0,0 +1 @@
localhost ansible_connection=local
12 changes: 12 additions & 0 deletions playbook.yml
@@ -0,0 +1,12 @@
---

- hosts: all
become: yes
tasks:
- include: playbooks/dev.yml
when: ansible_distribution == 'Ubuntu'

#- apt: name=zsh state=latest update_cache=yes
#- user: name=$user shell=/bin/zsh

#- shell: /.dotfiles/install.sh
40 changes: 40 additions & 0 deletions playbooks/dev.yml
@@ -0,0 +1,40 @@
---
- apt_repository: repo='deb https://apt.dockerproject.org/repo ubuntu-trusty main' state=present
- apt_repository: repo='ppa:git-core/ppa'

- name: apt update
apt: update_cache=yes

- name: install dev tools
apt: name={{ item }} state=present force=yes
with_items:
- git
- curl
- exuberant-ctags
- silversearcher-ag
- tmux


- name: python tools
apt: name={{ item }} state=present
with_items:
- python-apt
- python-dev
- python-setuptools
tags: python

- name: install pip
easy_install: name=pip
tags: python, pip


- name: install docker
apt: name=docker-engine state=present force=yes

- name: install Docker Compose via PIP
pip: name=docker-compose

- group: name=docker state=present
- user: name=vagrant group=docker append=yes

- service: name=docker state=started
12 changes: 0 additions & 12 deletions script/bootstrap
Expand Up @@ -107,17 +107,5 @@ done
install_dotfiles
install_vim

# If we are on a mac, lets install and setup homebrew
if [ "$(uname -s)" == "Darwin" ]
then
info "installing dependencies"
if . bin/dot > /tmp/dotfiles-dot 2>&1
then
success "dependencies installed"
else
fail "error installing dependencies"
fi
fi

echo ''
echo ' All installed!'
Binary file added tmux-2.2.tar.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions tmux/install.sh
@@ -0,0 +1,6 @@
sudo apt-get install libevent-dev libncurses-dev make
wget https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz
tar xvzf tmux-2.2.tar.gz
cd tmux-2.2/
./configure && make
sudo make install
2 changes: 1 addition & 1 deletion vim/vimrc
Expand Up @@ -12,7 +12,7 @@ Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
Plug 'bogado/file-line'

Plug 'SirVer/ultisnips'
"Plug 'SirVer/ultisnips'

Plug 'michaeljsmith/vim-indent-object'
Plug 'matchit.zip'
Expand Down

0 comments on commit feb94b1

Please sign in to comment.