-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into galaxy_job_radar
- Loading branch information
Showing
42 changed files
with
815 additions
and
433 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,60 @@ | ||
--- | ||
- name: DNBD3 Infrastructure | ||
hosts: dnbd3primary,dnbd3proxy | ||
become: true | ||
pre_tasks: | ||
- name: Install dependencies | ||
ansible.builtin.package: | ||
name: | ||
- git | ||
state: present | ||
|
||
- name: Create dnbd3 user | ||
ansible.builtin.group: | ||
name: "{{ dnbd3_group }}" | ||
state: present | ||
- name: Create dnbd3 user | ||
ansible.builtin.user: | ||
name: "{{ dnbd3_user }}" | ||
group: "{{ dnbd3_group }}" | ||
shell: /bin/false | ||
create_home: false | ||
- name: Grant access to dnbd3 root directory | ||
ansible.builtin.file: | ||
mode: "770" | ||
path: "{{ dnbd3_base_path }}" | ||
state: directory | ||
owner: "{{ dnbd3_user }}" | ||
group: "{{ dnbd3_group }}" | ||
- name: Grant access to tftp root directory | ||
ansible.builtin.file: | ||
mode: "770" | ||
path: "{{ tftpboot_path }}" | ||
state: directory | ||
owner: "{{ tftp_user }}" | ||
group: "{{ tftp_group }}" | ||
when: "'dnbd3primary' in group_names" | ||
roles: | ||
# - role: usegalaxy_eu.handy.os_setup | ||
# become: true | ||
# vars: | ||
# hostname: "{{ inventory_hostname }}" | ||
# enable_hostname: true | ||
# enable_powertools: true | ||
# when: "'dnbd3_primary' in group_names" | ||
- role: usegalaxy_eu.dnbd3 | ||
- role: usegalaxy_eu.tftp | ||
when: "'dnbd3primary' in group_names" | ||
- role: geerlingguy.apache | ||
when: "'dnbd3primary' in group_names" | ||
|
||
|
||
post_tasks: | ||
- name: Grant access to http directory | ||
ansible.builtin.file: | ||
mode: "770" | ||
path: "{{ apache_vhosts[0].documentroot }}" | ||
state: directory | ||
owner: "www-data" | ||
group: "www-data" | ||
when: "'dnbd3primary' in group_names" |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<style> | ||
body, html { width:100% ; | ||
height:100% ; | ||
overflow:hidden ; | ||
} | ||
iframe { width:100% ; | ||
height:100% ; | ||
border:none ; | ||
position: absolute; | ||
top: -9999em; | ||
visibility: hidden; | ||
} | ||
</style> | ||
</head> | ||
<body style="margin:0px"> | ||
<iframe id='center-iframe' src="" height="100%" onload="this.style.position='static'; this.style.visibility='visible';"></iframe> | ||
<script type="text/javascript"> | ||
var pseudo_rand = parseInt(Date.now() / 1000 / 60 / 10); | ||
document.getElementById('center-iframe').src = 'https://labs.usegalaxy.org.au/?content_root=https://github.com/galaxyproject/galaxy_codex/blob/main/communities/microgalaxy/lab/usegalaxy.eu.yml'; | ||
</script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tcp: | ||
routers: | ||
mq-rtr: | ||
rule: "HostSNI(`*`)" # || ClientIP(`132.230.224.103`)" Allow by host IP | ||
service: "mq" | ||
entryPoints: | ||
- amqps | ||
tls: | ||
passthrough: true |
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 @@ | ||
tcp: | ||
services: | ||
mq: | ||
loadBalancer: | ||
servers: | ||
- address: "10.5.68.232:5671" #replace once mq02 is in playbook |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# --- dnbd3 setup vars --- | ||
#dnbd3_base_path: "/mnt/s3/dnbd3" | ||
dnbd3_git_tag: "master" | ||
dnbd3_git_repo: "git://git.openslx.org/dnbd3.git" | ||
# --- dnbd3 config vars --- | ||
dnbd3_listen_port: "5003" | ||
dnbd3_client_penalty: "100000" | ||
dnbd3_primary: "{{ hostvars['dnbd3-primary.galaxyproject.eu']['ansible_default_ipv4']['address'] }}" | ||
dnbd3_primary_comment: "Primary DNBD3 server, which replicates S3FS mounted QCOW2 images." | ||
# dnbd3_primary_backup: "10.20.56.174" | ||
# dnbd3_primary_backup_comment: "Secondary/backup DNBD3 server, which replicates S3FS mounted QCOW2 images." | ||
dnbd3_poxys: | ||
- ip: "{{ hostvars['dnbd3-proxy.galaxyproject.eu']['ansible_default_ipv4']['address'] }}" | ||
comment: "1st DNBD3 Proxy" |
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,10 @@ | ||
--- | ||
dnbd3_is_proxy: false | ||
dnbd3_base_path: "/export/dnbd3-cache/images" | ||
tftpboot_path: "/export/dnbd3-cache/boot" | ||
apache_listen_port: 80 | ||
apache_remove_default_vhost: true | ||
apache_vhosts: | ||
- servername: "dnbd3-primary.galaxyproject.eu" | ||
serveralias: "{{ hostvars['dnbd3-primary.galaxyproject.eu']['ansible_default_ipv4']['address'] }}" | ||
documentroot: "/export/dnbd3-cache/http" |
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,3 @@ | ||
--- | ||
dnbd3_is_proxy: true | ||
dnbd3_base_path: "/mnt/dnbd3" |
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
Oops, something went wrong.