forked from usegalaxy-au/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
galaxy-handlers_playbook.yml
88 lines (88 loc) · 2.77 KB
/
galaxy-handlers_playbook.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
78
79
80
81
82
83
84
85
86
87
88
- hosts: galaxy-handlers
become: true
vars_files:
- group_vars/all.yml
- group_vars/galaxy_etca.yml
- group_vars/VAULT
- group_vars/galaxyservers.yml
- group_vars/galaxy_etca_slurm.yml
- host_vars/galaxy.usegalaxy.org.au.yml
- host_vars/galaxy-handlers.usegalaxy.org.au.yml
- secret_group_vars/stats_server_vault
- secret_group_vars/ubuntu_maintenance_key
- secret_group_vars/etca_vault.yml
pre_tasks:
- name: Attach volume to instance
include_role:
name: attached-volumes
- name: Install slurm drmaa ppa
include_role:
name: galaxyproject.repos
- name: Install slurm-drmaa
package:
name: slurm-drmaa1
state: latest
- name: Run common role as pre-task so that galaxy user will exist
include_role:
name: common
- name: create dir for gravity configuration
file:
state: directory
path: /opt/galaxy
owner: root
group: galaxy
mode: 0775
- name: create dir for galaxy's singularity cache
file:
state: directory
path: "{{ item }}"
owner: galaxy
group: galaxy
mode: 0700
with_items:
- "{{ galaxy_user_singularity_cachedir }}"
- "{{ galaxy_user_singularity_tmpdir }}"
- name: Create containing folders for external NFS file mounts
file:
state: directory
path: "{{ item }}"
with_items:
- "{{ qld_file_mounts_path }}"
- "{{ pawsey_file_mounts_path }}"
- name: create celery tmp dir
file:
state: directory
path: "{{ galaxy_celery_tmp_dir }}"
owner: galaxy
group: galaxy
roles:
- mounts
- geerlingguy.pip
- usegalaxy_eu.apptainer
- galaxyproject.galaxy
# - role: galaxyproject.miniconda
# become: true
# become_user: galaxy
- galaxyproject.nginx
- nginx-upload-module
# - galaxyproject.tusd # TODO: Where is tusd going to run??
- galaxyproject.slurm
- galaxyproject.cvmfs
- galaxyproject.gxadmin
- pg-post-tasks
- postfix-mail-relay
- geerlingguy.docker
- dj-wasabi.telegraf
- usegalaxy_eu.flower
- acl-on-startup
post_tasks:
- name: Make local_tool directory group-writable by machine users
# TODO: This path is problematic because the galaxyproject.galaxy role will chown it to root:root
# every time we run this playbook, potentially locking out tool devs for 10 minutes.
# New folder for in /mnt/tools? What would this mean for the lsync? What would this mean for docker volumes?
file:
path: "{{ galaxy_root }}/local_tools"
owner: root
group: devs
mode: 0775
state: directory