summaryrefslogtreecommitdiffstats
path: root/setup/projects/adei/vars/globals.yml
blob: 72262e5a1cd11b9df112f0b9334a6e80a6dff6bc (plain)
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
adei_domain: "{{ openshift_master_default_subdomain }}"

adei_pod_history_limit: 2

adei_pod_env:
    - name: "HOME"
      value: "/tmp"
    - name: "MYSQL_SERVER"
      value: "mysql.adei.svc.cluster.local"
    - name: "MYSQL_PORT"
      value: "3306"
    - name: "MYSQL_USER"
      value: "adei"
    - name: "MYSQL_PASSWORD"
      value: "adei"
    - name: "MYSQL_DATABASE"
      value: "adei"
    - name: "ADEI_PORTS"
      value: "8080"
    - name: "ADEI_ENABLED_SETUPS"
      value: "${setup} ${setup}-logs"
    - name: "ADEI_REVISION"
      value: "${adei_revision}"
    - name: "ADEI_PATH"
      value: "/adei/src"

adei_prod_env:
    - name: "ADEI_SETUP"
      value: "${setup}"
    - name: "ADEI_RELEASE"
      value: "1"
    - name: "ADEI_WRITE_LOGS"
      value: "${enable_logs}"
    - name: "ADEI_DEBUG"
      value: "${enable_debug}"
    - name: "APACHE_SERVERS"
      value: "${apache_servers}"
    - name: "ADEI_CONTINUOUS_CACHING"
      value: "${continuous_caching}"

adei_log_env:
    - name: "ADEI_SETUP"
      value: "${setup}-logs"
    - name: "ADEI_RELEASE"
      value: "1"
    - name: "ADEI_WRITE_LOGS"
      value: "0"
    - name: "ADEI_DEBUG"
      value: "0"
    - name: "APACHE_SERVERS"
      value: "5"

adei_debug_env:
    - name: "ADEI_SETUP"
      value: "${setup}"
    - name: "ADEI_RELEASE"
      value: "0"
    - name: "ADEI_WRITE_LOGS"
      value: "0"
    - name: "ADEI_DEBUG"
      value: "0"
    - name: "APACHE_SERVERS"
      value: "5"

adei_cron_env:
    - name: "ADEI_SETUP"
      value: "${setup}"
    - name: "ADEI_SCHEDULER"
      value: "${sched_parallel}"

adei_update_env:
    - name: "ADEI_CONTINUOUS_CACHING"
      value: "${continuous_caching}"

adei_cache_env:
    - name: "ADEI_SETUP"
      value: "${setup}"
    - name: "ADEI_URL"
      value: "http://adei-${setup}.adei.svc.cluster.local/adei"
    - name: "ADEI_PARALLEL"
      value: "${cache_parallel}"
    - name: "ADEI_IDLE_SLEEP"
      value: "5"

adei_arc_cache_env:
    - name: "ADEI_SETUP"
      value: "${setup}"
    - name: "ADEI_URL"
      value: "http://adei-${setup}.adei.svc.cluster.local/adei"
    - name: "ADEI_PARALLEL"
      value: "${cache_parallel}"
    - name: "ADEI_IDLE_SLEEP"
      value: "300"

adei_log_cache_env:
    - name: "ADEI_SETUP"
      value: "${setup}-logs"
    - name: "ADEI_URL"
      value: "http://adei-${setup}-logs.adei.svc.cluster.local/adei"
    - name: "ADEI_PARALLEL"
      value: "${sched_parallel}"
    - name: "ADEI_IDLE_SLEEP"
      value: "300"


adei_pod_vols:
    - name: adei-etc
      persistentVolumeClaim: 
        claimName: adei-etc
    - name: adei-src
      persistentVolumeClaim: 
        claimName: adei-src
    - name: adei-cfg
      persistentVolumeClaim: 
        claimName: adei-cfg
    - name: adei-sys
      persistentVolumeClaim: 
        claimName: adei-sys
    - name: adei-tmp
      persistentVolumeClaim: 
        claimName: adei-tmp
    - name: adei-log
      persistentVolumeClaim: 
        claimName: adei-log

adei_prod_mounts:
    - name: adei-src
      subPath: prod
      mountPath: /adei/src

adei_dbg_mounts:
    - name: adei-src
      subPath: dbg
      mountPath: /adei/src

adei_pod_mounts:
    - name: adei-cfg
      subPath: "${setup}"
      mountPath: /adei/cfg
    - name: adei-sys
      subPath: "${setup}"
      mountPath: /adei/sys
    - name: adei-tmp
      subPath: "${setup}"
      mountPath: /adei/tmp
    - name: adei-log
      subPath: "${setup}/apache2"
      mountPath: /var/log/apache2

adei_frontends:
    frontend:
      name: "adei-${setup}"
      node: "adei-${setup}.{{ adei_domain }}"
      replicas: "${adei_replicas}"
      env: "{{ adei_pod_env | union(adei_prod_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      configure: true
    debug:
      name: "adei-${setup}-debug"
      node: "adei-${setup}-debug.{{ adei_domain }}"
      replicas: 1
      env: "{{ adei_pod_env | union(adei_debug_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_dbg_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
      configure: true
    logs:
      name: "adei-${setup}-logs"
      node: "adei-${setup}-logs.{{ adei_domain }}"  
      replicas: "${enabled_logs}"
      env: "{{ adei_pod_env | union(adei_log_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
    cacher:
      name: "adei-${setup}-cacher"
      replicas: "${cache_replicas}"
      cmd: [ "/bin/bash", "/adei/src/scripts/system/cacher.sh" ]
      env: "{{ adei_pod_env | union(adei_cache_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: true
    archive_cacher:
      name: "adei-${setup}-archive-cacher"
      replicas: "1"
      cmd: [ "/bin/bash", "/adei/src/scripts/system/cacher.sh -m archive" ]
      env: "{{ adei_pod_env | union(adei_arc_cache_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
    log_cacher:
      name: "adei-${setup}-log-cacher"
      replicas: "${enabled_logs}"
      cmd: [ "/bin/bash", "/adei/src/scripts/system/cacher.sh" ]
      env: "{{ adei_pod_env | union(adei_log_cache_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
    update:
      name: "adei-${setup}-update"
      cron: "${update_schedule}"
      cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei.cron.sh" ]
      env: "{{ adei_pod_env | union(adei_cron_env) | union(adei_update_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: true
    maintain:
      name: "adei-${setup}-maintain"
      cron: "${maintain_schedule}"
      cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_manager.cron.sh" ]
      env: "{{ adei_pod_env | union(adei_cron_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
    clean:
      name: "adei-${setup}-clean"
      cron: "${clean_schedule}"
      cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_clean.cron.sh" ]
      env: "{{ adei_pod_env | union(adei_cron_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false