forked from usegalaxy-no/infrastructure-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgalaxy.yml
138 lines (124 loc) · 3.39 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
- hosts: galaxyserver
become: true
tags:
- galaxyserver
vars_files:
- secret_group_vars/global.vault
- group_vars/global.yml
- group_vars/env.yml
- group_vars/galaxy.yml
- group_vars/telegraf.yml
# - group_vars/nga.yml
pre_tasks:
- name: Install Dependencies
package:
# use_backend: dnf
name:
- "python3"
- "python3-psycopg2"
- "git"
- "python36-virtualenv"
- "make"
- "bzip2"
- "postgresql"
- "jq"
- "tmpwatch"
- name: Create users and groups
tags: create_users
include_tasks: tasks/users_groups.yml
- name: Open firewalld ports
tags: firewall-setup
vars:
- ports: "['ssh', 'http', 'https']"
include_tasks: tasks/firewall.yml
tasks:
- name: Perform misc galaxy tasks
include_tasks: tasks/galaxy.yml
- name: Perform misc system tasks
include_tasks: tasks/system.yml
handlers:
- name: Restart Galaxy
systemd:
name: galaxy
state: restarted
roles:
- geerlingguy.repo-epel
- geerlingguy.pip
- galaxyproject.repos
- role: galaxyproject.galaxy
tags:
- galaxy
- role: uchida.miniconda
become_user: galaxy
- usegalaxy_eu.galaxy_systemd
- galaxyproject.nginx
- role: galaxyproject.cvmfs
tags:
- cvmfs
- galaxyproject.repos
- role: dj-wasabi.telegraf
tags:
- telegraf
# - usegalaxy_eu.gie_proxy
# - usegalaxy_eu.gxadmin
- role: usegalaxy-no.nels_storage
tags:
- nels
# - usegalaxy-no.galaxy-tools
# - usegalaxy-no.nels-galaxy-api
post_tasks:
- name: Install slurm-drmaa
package:
name: slurm-drmaa
- name: Install Singularity
package:
name: singularity
# - name: Install the tos-api
# include_tasks_role:
# name: usegalaxy-no.tos-api
# TODO: This should not be needed, but...
- name: galaxy need a compliance log for conda, will otherwise fail.
file:
path: "{{ galaxy_root }}/server/compliance.log"
state: file
mode: "0644"
owner: "{{ galaxy_user.name }}"
- name: galaxy dependencies dir (?)
file:
path: "{{ galaxy_root }}/server/dependencies"
state: directory
mode: "0755"
owner: "{{ galaxy_user.name }}"
- name: galaxy root is readable for nginx
file:
path: "{{ galaxy_root }}"
state: directory
mode: "0755"
owner: "{{ galaxy_user.name }}"
group: "{{ galaxy_user.name }}"
- name: Make sure galaxy owns tool-data
file:
path: "{{ galaxy_root }}/server/tool-data"
state: directory
recurse: no
mode: "0755"
owner: "{{ galaxy_user.name }}"
- name: Make sure galaxy owns /sanitize_whitelist.txt
file:
path: "{{ galaxy_mutable_config_dir }}/sanitize_whitelist.txt"
state: file
mode: "0755"
owner: "{{ galaxy_user.name }}"
- name: Make sure cvmfs owns local folder
file:
path: "{{ galaxy_file_path }}/cvmfs"
state: directory
mode: "0755"
owner: cvmfs
- name: make sure 0775 permissions on the dependencies folder
file:
path: "{{ galaxy_root }}/server/dependencies"
state: directory
mode: "0755"
owner: galaxy
group: root