-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
71 additions
and
63 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,12 @@ | ||
--- | ||
|
||
- name: Common base role | ||
hosts: [masterservers, crafternodes] | ||
sudo: yes | ||
sudo_user: root | ||
remote_user: vagrant | ||
vars_files: | ||
- env_vars/secret.yml | ||
- env_vars/base.yml | ||
roles: | ||
- base |
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,24 @@ | ||
--- | ||
|
||
# Add masterservers to hosts but disable all roles | ||
# This is necessary for gathering facts | ||
# So we can set the right hostname for rabbitmq and the db | ||
- name: Create RayCrafter crafter node | ||
hosts: [crafternodes, masterservers] | ||
sudo: yes | ||
sudo_user: root | ||
remote_user: vagrant | ||
vars_files: | ||
- env_vars/secret.yml | ||
- env_vars/base.yml | ||
- env_vars/crafternode.yml | ||
roles: | ||
- {role: supervisor, when: "'crafternodes' in group_names"} | ||
- {role: web, when: "'crafternodes' in group_names"} | ||
- {role: celery, when: "'crafternodes' in group_names"} | ||
- {role: graylog, when: "'crafternodes' in group_names"} | ||
- {role: gridftp, when: "'crafternodes' in group_names"} | ||
tasks: | ||
- name: Copy private ssh key of masterserver | ||
copy: src="{{playbook_dir}}/files/ssh/id_rsa" dest="~/.ssh/id_rsa" | ||
owner={{ ansible_ssh_user }} mode=0700 |
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,9 @@ | ||
--- | ||
|
||
- name: Setup raycrafter at the HLRS | ||
hosts: hlrs | ||
sudo: no | ||
vars_files: | ||
- env_vars/hlrs.yml | ||
roles: | ||
- hlrsvenv |
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,22 @@ | ||
--- | ||
|
||
- name: Create RayCrafter master server | ||
hosts: masterservers | ||
sudo: yes | ||
sudo_user: root | ||
remote_user: vagrant | ||
vars_files: | ||
- env_vars/secret.yml | ||
- env_vars/base.yml | ||
- env_vars/masterserver.yml | ||
roles: | ||
- supervisor | ||
- jdauphant.ssl-certs | ||
- jdauphant.nginx | ||
- f500.elasticsearch | ||
- graylog2.graylog | ||
- db | ||
- rabbitmq | ||
- gunicorn | ||
- web | ||
- graylog |
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,65 +1,6 @@ | ||
--- | ||
|
||
- name: Common base role | ||
hosts: all | ||
sudo: yes | ||
sudo_user: root | ||
remote_user: vagrant | ||
vars_files: | ||
- env_vars/secret.yml | ||
- env_vars/base.yml | ||
roles: | ||
- base | ||
|
||
- name: Create RayCrafter master server | ||
hosts: masterservers | ||
sudo: yes | ||
sudo_user: root | ||
remote_user: vagrant | ||
vars_files: | ||
- env_vars/secret.yml | ||
- env_vars/base.yml | ||
- env_vars/masterserver.yml | ||
roles: | ||
- supervisor | ||
- jdauphant.ssl-certs | ||
- jdauphant.nginx | ||
- f500.elasticsearch | ||
- graylog2.graylog | ||
- db | ||
- rabbitmq | ||
- gunicorn | ||
- web | ||
- graylog | ||
|
||
# Add masterservers to hosts but disable all roles | ||
# This is necessary for gathering facts | ||
# So we can set the right hostname for rabbitmq and the db | ||
- name: Create RayCrafter crafter node | ||
hosts: [crafternodes, masterservers] | ||
sudo: yes | ||
sudo_user: root | ||
remote_user: vagrant | ||
vars_files: | ||
- env_vars/secret.yml | ||
- env_vars/base.yml | ||
- env_vars/crafternode.yml | ||
roles: | ||
- {role: supervisor, when: "'crafternodes' in group_names"} | ||
- {role: web, when: "'crafternodes' in group_names"} | ||
- {role: celery, when: "'crafternodes' in group_names"} | ||
- {role: graylog, when: "'crafternodes' in group_names"} | ||
- {role: gridftp, when: "'crafternodes' in groubp_names"} | ||
tasks: | ||
- name: Copy private ssh key of masterserver | ||
copy: src="{{playbook_dir}}/files/ssh/id_rsa" dest="~/.ssh/id_rsa" | ||
owner={{ ansible_ssh_user }} mode=0700 | ||
|
||
|
||
- name: Setup raycrafter at the HLRS | ||
hosts: hlrs | ||
sudo: no | ||
vars_files: | ||
- env_vars/hlrs.yml | ||
roles: | ||
- hlrsvenv | ||
- include: base.yml | ||
- include: masterserver.yml | ||
- include: crafternodes.yml | ||
- include: hlrs.yml |