forked from sloria/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate local, remote, and vagrant environments
...into different playbooks and scripts. dot - sets up local environment dot-remote - sets up remote environments vdot - sets up vagrant test environment
- Loading branch information
Showing
11 changed files
with
75 additions
and
39 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
ansible-playbook -i ~/dotfiles/hosts ~/dotfiles/dot.yml --ask-sudo-pass | ||
echo "Setting up local dev enviroment" | ||
ansible-playbook -i ~/dotfiles/hosts ~/dotfiles/local_env.yml |
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 @@ | ||
echo "Setting up remote development enviroments" | ||
ansible-playbook -i ~/dotfiles/hosts ~/dotfiles/remote_env.yml |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
ansible-playbook dot.yml -i vagranthosts -u vagrant --ask-sudo-pass --private-key=~/.vagrant.d/insecure_private_key -l remote -U vagrant | ||
echo "Setting up vagrant test enviroment" | ||
ansible-playbook remote_env.yml -i vagranthosts -u vagrant --ask-sudo-pass --private-key=~/.vagrant.d/insecure_private_key -l remote -U vagrant |
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,7 @@ | ||
# vi: set ft=yaml : | ||
|
||
dotfiles_user_home: /home/vagrant | ||
dotfiles_home: "{{dotfiles_user_home}}/dotfiles" | ||
|
||
git_user: vagrant | ||
git_email: [email protected] |
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ localhost | |
ansible_connection=local | ||
|
||
[remote] | ||
|
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,19 @@ | ||
- name: Collecting Facts | ||
hosts: local | ||
gather_facts: yes | ||
|
||
- name: Set up local development environment | ||
hosts: local | ||
roles: | ||
- git | ||
- package_manager | ||
- zsh | ||
- vim | ||
- python | ||
- hub | ||
- autojump | ||
- autoenv | ||
- ag | ||
- tmux | ||
- {role: osx, when: ansible_os_family == "Darwin"} | ||
|
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
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
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
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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
# Test ubuntu and fedora boxes | ||
[remote] | ||
[vagrant] | ||
192.168.111.227 | ||
|
||
[remote:vars] | ||
dotfiles_user_home=/home/vagrant | ||
dotfiles_home="{{dotfiles_user_home}}/dotfiles" | ||
git_user=vagrant | ||
[email protected] | ||
[remote:children] | ||
vagrant |