Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused staff && add vagrant file && ansible playbooks
- Loading branch information
1 parent
b4bc8ef
commit feb94b1
Showing
12 changed files
with
100 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
playbook.retry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
install: | ||
ansible-playbook playbook.yml -i local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
localhost ansible_connection=local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters