-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgalaxy.yml
72 lines (71 loc) · 2.09 KB
/
galaxy.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
---
- hosts: dbservers
become: true
become_user: root
pre_tasks:
- name: Install Dependencies
package:
name: 'acl'
roles:
- galaxyproject.postgresql
- role: galaxyproject.postgresql_objects
become: true
become_user: postgres
- hosts: galaxyservers
become: true
become_user: root
vars_files:
- group_vars/secret.yml
pre_tasks:
- name: Install Dependencies
package:
name: ['acl', 'bzip2', 'git', 'make', 'tar', 'python3-venv', 'python3-setuptools']
- name: Install RHEL/CentOS/Rocky specific dependencies
package:
name: ['tmpwatch']
when: ansible_os_family == 'RedHat'
- name: Install Debian/Ubuntu specific dependencies
package:
name: ['tmpreaper']
when: ansible_os_family == 'Debian'
# - name: Deploy cert
# copy:
# src: files/certificates/bioinf-galactus.erasmusmc.nl.crt
# dest: /etc/ssl/certs/bioinf-galactus.erasmusmc.nl.crt
# owner: root
# group: root
# mode: '0644'
# - name: Deploy key
# copy:
# src: files/certificates/bioinf-galactus.erasmusmc.nl.key
# dest: /etc/ssl/private/bioinf-galactus.erasmusmc.nl.key
# owner: root
# group: root
# mode: '0400'
- name: Deploy Custom Tools Folder
copy:
src: files/emc-tools/
dest: /data/emc-tools/
owner: root
group: root
mode: '0755'
roles:
- htcondor-github
- geerlingguy.pip
- galaxyproject.galaxy
- role: galaxyproject.miniconda
become: true
become_user: "{{ galaxy_user_name }}"
- galaxyproject.nginx
- galaxyproject.gxadmin
# - galaxyproject.proftpd
- galaxyproject.cvmfs
- influxdata.chrony
post_tasks:
- name: Setup gxadmin cleanup task
ansible.builtin.cron:
name: "Cleanup Old User Data"
user: galaxy # Run as the Galaxy user
minute: "0"
hour: "0"
job: "GALAXY_LOG_DIR=/tmp/gxadmin/ GALAXY_CONFIG_FILE={{ galaxy_config_file }} GALAXY_ROOT={{ galaxy_root }}/server /usr/local/bin/gxadmin galaxy cleanup 60"