forked from usegalaxy-eu/infrastructure-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload.yml
77 lines (75 loc) · 2.84 KB
/
upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
- name: Install and configure rustus
hosts: upload
become: true
become_user: root
vars_files:
- secret_group_vars/sentry.yml
- mounts/mountpoints.yml
- mounts/dest/all.yml
vars:
upload_dir_test: "{{ jwd.jwd04.path }}/tus_upload/test"
upload_dir_main: "{{ jwd.jwd04.path }}/tus_upload/main"
rustus_version: "0.7.4"
rustus_instances:
- name: test_uploads
# user that rustus will run as
user: "{{ user_name }}"
# group that rustus will run as
group: "{{ user_group_name }}"
# by default, rustus will refuse to work if it cannot write to its current working
# directory, read the documentation of the usegalaxy_eu.rustus role for more
# details
working_directory: "{{ upload_dir_test }}"
# args passed to rustus
args:
- --host "{{ inventory_hostname }}"
- --port 1080
- "--data-dir {{ upload_dir_test }}"
- --hooks-http-urls "https://test.usegalaxy.eu/api/upload/hooks"
- --hooks-http-proxy-headers "X-Api-Key,Cookie"
- --hooks "pre-create"
- --hooks-format tusd
- --url "/api/upload/resumable_upload"
- --max-body-size 20000000
- "--sentry-dsn {{ sentry_dsn.test }} --sentry-sample-rate 1.0"
- --info-storage "file-info-storage" --info-dir "{{ upload_dir_test }}"
- name: main_uploads
# user that rustus will run as
user: "{{ user_name }}"
# group that rustus will run as
group: "{{ user_group_name }}"
# by default, rustus will refuse to work if it cannot write to its current working
# directory, read the documentation of the usegalaxy_eu.rustus role for more
# details
working_directory: "{{ upload_dir_main }}"
# args passed to rustus
args:
- --host "{{ inventory_hostname }}"
- --port 1081
- "--data-dir {{ upload_dir_main }}"
- --hooks-http-urls "https://usegalaxy.eu/api/upload/hooks"
- --hooks-http-proxy-headers "X-Api-Key,Cookie"
- --hooks "pre-create"
- --hooks-format tusd
- --url "/api/upload/resumable_upload"
- --max-body-size 20000000
- "--sentry-dsn {{ sentry_dsn.main }} --sentry-sample-rate 1.0"
- --info-storage "file-info-storage" --info-dir "{{ upload_dir_main }}"
pre_tasks:
- ansible.posix.firewalld:
zone: public
port: 1080-1081/tcp
permanent: true
state: enabled
roles:
- role: usegalaxy_eu.handy.os_setup
vars:
enable_remap_user: true
enable_create_user: true
enable_kernel_5: true
enable_install_software: true
- influxdata.chrony
## Filesystems
- usegalaxy-eu.autofs # Setup the mount points which will be needed later
- usegalaxy_eu.rustus