Skip to content

Commit

Permalink
Merge pull request #4 from jakedahn/role-paths
Browse files Browse the repository at this point in the history
Use role paths instead of requiring the extra step of updating ansible.cfg
  • Loading branch information
mhamrah committed Sep 13, 2014
2 parents 2dc904a + 0c191af commit 627695b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
tmp
librarian_roles
ansible.cfg
hosts
hosts*
*.bak

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ An ansible playbook for launching a mesos cluster with docker (via [Deimos](http
### Getting Started

* Install [librarian-ansible](https://github.com/bcoe/librarian-ansible) via ```gem install librarian-ansible```
* You should add ```roles_path=./librarian_roles``` to an ansible.cfg file, preferably in this project's root directory.
* Run ```librarian-ansible install```
* Spin up a bunch of Ubuntu 14.04 servers, say 5.
* ```cp hosts.sample hosts``` and update the ```mesos_masters``` and ```mesos_slaves``` groups.
Expand Down
16 changes: 8 additions & 8 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
- git
- vim
roles:
- { role: ansible-docker, tags:['os-tools'] }
- { role: ansible-java8, tags:['runtimes', 'java']}
- { role: info.haproxy }
- { role: ansible-mesos, mesos_cluster_name: "mlh_mesos", mesos_options: "--log_dir=$LOGS", tags: ['mesos', 'platforms'] }
- { role: ansible-marathon, tags:['mesos-tools'] }
- { role: './librarian_roles/ansible-docker', tags:['os-tools'] }
- { role: './librarian_roles/ansible-java8', tags:['runtimes', 'java']}
- { role: './librarian_roles/info.haproxy' }
- { role: './librarian_roles/ansible-mesos', mesos_cluster_name: "mlh_mesos", mesos_options: "--log_dir=$LOGS", tags: ['mesos', 'platforms'] }
- { role: './librarian_roles/ansible-marathon', tags:['mesos-tools'] }

- hosts: [mesos_slaves]
sudo: True
roles:
- { role: ansible-docker, tags:['os-tools'] }
- { role: ansible-java8, tags:['runtimes', 'java']}
- { role: ansible-mesos, mesos_install_mode: "slave", mesos_version: "0.19.0", mesos_options: "--log_dir=$LOGS", tags: ['mesos', 'platforms'] }
- { role: './librarian_roles/ansible-docker', tags:['os-tools'] }
- { role: './librarian_roles/ansible-java8', tags:['runtimes', 'java']}
- { role: './librarian_roles/ansible-mesos', mesos_install_mode: "slave", mesos_version: "0.19.0", mesos_options: "--log_dir=$LOGS", tags: ['mesos', 'platforms'] }

0 comments on commit 627695b

Please sign in to comment.