-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
executable file
·134 lines (122 loc) · 3.15 KB
/
deploy.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
---
# WARNING! YOU MUST HAVE A COMPLETE secrets/
# - name: Set up mount point
# hosts: everyone
# become: true
# become_user: dbuchan
# become_method: sudo
# roles:
# - global
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
# - name: Apply the redis configuration
# hosts: redis
# become: true
# become_user: dbuchan
# become_method: sudo
# roles:
# - redis
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
# - name: Install frontend
# hosts: webserver
# become: true
# become_user: dbuchan
# become_method: sudo
# roles:
# - psipredreact
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
# - name: Apply the postgres configuration
# hosts: dbserver
# become: true
# become_user: dbuchan
# become_method: sudo
# roles:
# - dbserver
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
# - name: Apply Analytics Automated head node configuration
# hosts: aa_head
# become: true
# become_user: dbuchan
# become_method: sudo
# roles:
# - djangomachine
# - aahead
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
# - name: Create blastmachine
# hosts: blast
# become: true
# become_user: root
# become_method: sudo
# roles:
# - djangomachine
# - blastmachine
# - blastworkers
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
- name: Create blast_cache machine
hosts: blast_cache
become: true
become_user: root
become_method: sudo
roles:
- role: djangomachine
when: my_env is match ("production")
- role: blastcache
when: my_env is match ("production")
vars_files:
- secrets/{{ my_env }}_secrets.yaml
# mempack won't compile in OSX
# domThreader seg faults in OSX
# - name: Create Celery worker node
# hosts: celery_worker_node
# become: true
# become_user: root
# become_method: sudo
# roles:
# - djangomachine
# - aaworker
# - psipred
# - disopred
# - memsatsvm
# - pGenTHREADER
# - model_parts
# - dompred
# - mempack
# - metsite
# - hspred
# - memembed
# - dmp
# - dmpmetal
# - merizo
# - dmpfold2
# - s4pred
# - ffpred
# vars_files:
# - secrets/staging_secrets.yaml
## Can only be run if server update is public
## Could probably use inline to add in the slack webhooks from secrets rather than keeping them in the repo
# - name: Create blast update machine
# hosts: blastupdate
# become: true
# become_user: root
# become_method: sudo
# roles:
# - role: blastupdate
# when: my_env is match ("production")e
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml
###### WE SHOULD ADD THE CLEAN UP AND CRON THINGS HERE TOO, SEE WHAT IS ON THE CURRENT MACHINES
###### DON'T FORGET LOGROTATE AND memsatsvm clean up
# - name: Set assorted packages to be excluded from any auto updates or installs now everything is in place
# hosts: everyone
# become: true
# become_user: root
# become_method: sudo
# roles:
# - closing
# vars_files:
# - secrets/{{ my_env }}_secrets.yaml