-
Notifications
You must be signed in to change notification settings - Fork 8
/
defaults.yml
284 lines (252 loc) · 10.1 KB
/
defaults.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
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
---
# Label: project_openshift_defaults
# Title: create the Ansible defaults for deploying the application to OpenShift
# Mission: create the Ansible defaults for deploying the application to OpenShift
# Milestone: Automate Project Deployment
# Column: Automate Project Deployment
####################
# Ansible defaults #
####################
SITE_BUILD_CONFIG_1: true
######################
# OpenShift defaults #
######################
# The OpenShift base URL where applications will be deployed.
REDHAT_OPENSHIFT_HOST: https://api.rh-us-east-1.openshift.com
# The OpenShift secret token to grant access to OpenShift (https://api.pro-us-east-1.openshift.com/oauth/token/request).
REDHAT_OPENSHIFT_TOKEN: "..."
# The OpenShift namespace where applications will be deployed.
REDHAT_OPENSHIFT_NAMESPACE: "rh-impact"
# The default storage class name for persistent volumes for the OpenShift cluster.
REDHAT_OPENSHIFT_STORAGE_CLASS_NAME: gp2
######################
# Zookeeper defaults #
######################
# The default port that Zookeeper runs to manage the cluster.
ZOOKEEPER_PORT: 2181
# The Zookeeper OpenShift base URL where Zookeeper will be deployed.
ZOOKEEPER_HOST: "{{ REDHAT_OPENSHIFT_HOST }}"
# The Zookeeper OpenShift secret token to grant access to OpenShift (https://api.pro-us-east-1.openshift.com/oauth/token/request).
ZOOKEEPER_TOKEN: "{{ REDHAT_OPENSHIFT_TOKEN }}"
# The Zookeeper OpenShift namespace where Zookeeper will be deployed.
ZOOKEEPER_NAMESPACE: "{{ REDHAT_OPENSHIFT_NAMESPACE }}"
# The Zookeeper volume size for Zookeeper files.
ZOOKEEPER_VOLUME_SIZE: 1Gi
# The default hostname for the Zookeeper cluster manager.
ZOOKEEPER_HOST_NAME: "zookeeper.{{ ZOOKEEPER_NAMESPACE }}.svc"
# The default storage class name for persistent volumes for Zookeeper.
ZOOKEEPER_STORAGE_CLASS_NAME: "{{ REDHAT_OPENSHIFT_STORAGE_CLASS_NAME }}"
#################
# Solr defaults #
#################
# The default port that Solr runs.
SOLR_PORT: 8983
# The Solr OpenShift base URL where Solr will be deployed.
SOLR_HOST: "{{ REDHAT_OPENSHIFT_HOST }}"
# The Solr OpenShift secret token to grant access to OpenShift (https://api.pro-us-east-1.openshift.com/oauth/token/request).
SOLR_TOKEN: "{{ REDHAT_OPENSHIFT_TOKEN }}"
# The Solr OpenShift namespace where Solr be deployed.
SOLR_NAMESPACE: "{{ REDHAT_OPENSHIFT_NAMESPACE }}"
# The Solr volume size for Solr files.
SOLR_VOLUME_SIZE: 2Gi
# The default hostname for the Solr search engine.
SOLR_HOST_NAME: "solr.{{ SOLR_NAMESPACE }}.svc"
# The default storage class name for persistent volumes for Solr.
SOLR_STORAGE_CLASS_NAME: "{{ REDHAT_OPENSHIFT_STORAGE_CLASS_NAME }}"
#######################
# PostgreSQL defaults #
#######################
# The default port that PostgreSQL runs.
POSTGRES_PORT: 5432
# The PostgreSQL OpenShift base URL where PostgreSQL will be deployed.
POSTGRES_HOST: "{{ REDHAT_OPENSHIFT_HOST }}"
# The PostgreSQL OpenShift secret token to grant access to OpenShift (https://api.pro-us-east-1.openshift.com/oauth/token/request).
POSTGRES_TOKEN: "{{ REDHAT_OPENSHIFT_TOKEN }}"
# The PostgreSQL OpenShift namespace where PostgreSQL be deployed.
POSTGRES_NAMESPACE: "{{ REDHAT_OPENSHIFT_NAMESPACE }}"
# The PostgreSQL volume size for Solr files.
POSTGRES_VOLUME_SIZE: 1Gi
# The default hostname for the PostreSQL database.
POSTGRES_HOST_NAME: "postgresql.{{ POSTGRES_NAMESPACE }}.svc"
# The default username for the PostreSQL database.
POSTGRES_DB_USER: computate
# The default PostgreSQL database name.
POSTGRES_DB_NAME: "{{ APP_NAME }}"
# The default PostgreSQL database password.
POSTGRES_DB_PASSWORD: "..."
# The default storage class name for persistent volumes for PostgreSQL.
POSTGRES_STORAGE_CLASS_NAME: "{{ REDHAT_OPENSHIFT_STORAGE_CLASS_NAME }}"
###################
# Github defaults #
###################
# The Github Organization.
GITHUB_ORG_NAME: "team19hackathon2021"
# The Github Repository name.
GITHUB_REPO_NAME: "{{ SITE_NAME }}"
###############################
# application global defaults #
###############################
# The source code directory of the application
SITE_SRC: "{{ lookup('env', 'HOME') }}/.local/src/{{ SITE_NAME }}"
# The application OpenShift base URL where application will be deployed.
SITE_HOST: "{{ REDHAT_OPENSHIFT_HOST }}"
# The application OpenShift secret token to grant access to OpenShift (https://api.pro-us-east-1.openshift.com/oauth/token/request).
SITE_TOKEN: "{{ REDHAT_OPENSHIFT_TOKEN }}"
# The application OpenShift namespace where application be deployed.
SITE_NAMESPACE: "{{ REDHAT_OPENSHIFT_NAMESPACE }}"
# The base URL where the static files will point to.
SITE_STATIC_BASE_URL: "https://computate.neocities.org/serratus-api"
# Where static files are placed in the pod.
SITE_STATIC_PATH:
# App memory limit.
SITE_LIMITS_MEMORY: "500Mi"
# App cpu limit.
SITE_LIMITS_CPU: "1m"
#########################################
# application US English defaults #
#########################################
# The domain name of the site.
SITE_DOMAIN_NAME_ENUS: "example.com"
# The host name of the site.
SITE_HOST_NAME_ENUS: "{{ SITE_NAME }}.{{ SITE_DOMAIN_NAME_ENUS }}"
# The port of the site.
SITE_PORT_ENUS: "8080"
# The base URL of the site.
SITE_BASE_URL_ENUS: "https://{{ SITE_HOST_NAME_ENUS }}"
# The Solr collection of the site.
SITE_SOLR_COLLECTION_ENUS: "{{ SITE_NAME }}"
# The timezone of the site.
SITE_ZONE_ENUS: "America/Denver"
# The PostgreSQL database host name of the site.
SITE_DB_HOST_NAME_ENUS: "localhost"
# The PostgreSQL database user name of the site.
SITE_DB_USER_ENUS: "{{ POSTGRES_DB_USER }}"
# The PostgreSQL database password of the site.
SITE_DB_PASSWORD_ENUS: "{{ POSTGRES_DB_PASSWORD }}"
# The PostgreSQL database name of the site.
SITE_DB_NAME_ENUS: "{{ SITE_NAME }}"
# The Java main class of the site.
SITE_JAVA_MAIN_CLASS_ENUS: io.serratus.api.enus.vertx.MainVerticle
########################
# serrtus-api defaults #
########################
AUTH_ROLES_ADMIN: [ SiteAdmin ]
AUTH_ROLES_REQUIRED_SiteUser: [ "SiteAdmin" ]
AUTH_ROLES_REQUIRED_SequenceRun: [ "User" ]
AUTH_ROLES_REQUIRED_BioSample: [ "User" ]
AUTH_ROLES_REQUIRED_Taxonomy: [ "User" ]
#################
# SMTP defaults #
#################
# The email SMTP host name.
EMAIL_HOST_NAME: smtp.example.com
# The email SMTP port.
EMAIL_PORT: 465
# The email SMTP from email address.
EMAIL_FROM: "..."
# Whether email SMTP SSL/TLS encryption is enabled.
EMAIL_SSL: true
# Whether email SMTP username password authentication is enabled.
EMAIL_AUTH: true
# The email SMTP username.
EMAIL_USER: "..."
EMAIL_PASSWORD: "..."
####################
# SSL/TLS defaults #
####################
# The keystore alias.
SSL_ALIAS: "{{ SITE_DOMAIN_NAME_ENUS }}"
# The keystore directory.
SSL_KEYSTORE_PATH: /opt/keystore
# The keystore properties filename.
SSL_PROPERTIES_FILENAME: "{{ SITE_SSL_PROPERTIES_FILENAME }}"
# The SSL certificate path.
SSL_CERT_PATH: "{{ SSL_KEYSTORE_PATH }}/tls.crt"
# The SSL private key path.
SSL_KEY_PATH: "{{ SSL_KEYSTORE_PATH }}/tls.key"
# The certificate filename.
SSL_CRT_FILENAME: "{{ SSL_ALIAS }}.crt"
# The certificate path.
SSL_CRT_PATH: "{{ SSL_KEYSTORE_PATH }}/{{ SSL_CRT_FILENAME }}"
# The p12 file password.
SSL_P12_PASSWORD: "..."
# The keystore file password.
SSL_JKS_PASSWORD: "{{ SSL_P12_PASSWORD }}"
# The keystore file base64 encoded (base64 -w 0 /opt/keystore/computate.org.jks).
#SSL_JKS_BASE64: "{{ lookup('file', '{{ SSL_JKS_PATH }}') | b64encode }}"
# The jceks file base64 encoded (base64 -w 0 /opt/keystore/computate.org.jceks).
SSL_JCEKS_BASE64: "{{ lookup('file', '{{ SSL_JCEKS_PATH }}') | b64encode }}"
# Enable SSL passthrough
SSL_PASSTHROUGH: false
#######################################
# OpenID Connect auth server defaults #
#######################################
# The Red Hat SSO OpenShift base URL where Red Hat SSO will be deployed.
SSO_HOST: "{{ REDHAT_OPENSHIFT_HOST }}"
# The Red Hat SSO OpenShift secret token to grant access to OpenShift (https://api.pro-us-east-1.openshift.com/oauth/token/request).
SSO_TOKEN: "{{ REDHAT_OPENSHIFT_TOKEN }}"
# The Red Hat SSO OpenShift namespace where Red Hat SSO be deployed.
SSO_NAMESPACE: "{{ REDHAT_OPENSHIFT_NAMESPACE }}"
# The default username for the Red Hat SSO PostreSQL database.
SSO_DB_USERNAME: "..."
# The default Red Hat SSO PostgreSQL database password.
SSO_DB_PASSWORD: "..."
# The default Red Hat SSO PostgreSQL database name.
SSO_DB_DATABASE: root
# The Red Hat SSO HTTPS keystore alias.
SSO_HTTPS_NAME: "{{ SSL_ALIAS }}"
# The Red Hat SSO HTTPS keystore file password.
SSO_HTTPS_PASSWORD: "{{ SSL_JKS_PASSWORD }}"
# The Red Hat SSO JGroups keystore alias.
SSO_JGROUPS_ENCRYPT_NAME: "{{ SSL_ALIAS }}"
# The Red Hat SSO JGroups keystore file password.
SSO_JGROUPS_ENCRYPT_PASSWORD: "{{ SSL_JKS_PASSWORD }}"
# A Red Hat SSO JGroups cluster password.
SSO_JGROUPS_CLUSTER_PASSWORD: "..."
# A Red Hat SSO admin username.
SSO_ADMIN_USERNAME: "..."
# A Red Hat SSO admin password.
SSO_ADMIN_PASSWORD: "..."
SSO_REALM: "{{ AUTH_REALM }}"
# A Red Hat SSO initial user username.
SSO_SERVICE_USERNAME: "..."
# A Red Hat SSO initial user password.
SSO_SERVICE_PASSWORD: "..."
# The Red Hat SSO truststore file password.
SSO_TRUSTSTORE_PASSWORD: "{{ SSL_JKS_PASSWORD }}"
# The Red Hat SSO volume size for Solr files.
SSO_VOLUME_SIZE: 1Gi
# The default hostname for Red Hat SSO.
SSO_SITE_HOST_NAME: "sso.example.com"
# The Auth realm.
AUTH_REALM: EXAMPLE.COM
# The Auth client or resource.
AUTH_RESOURCE: example.com
# The Auth secret.
AUTH_SECRET: "..."
# The Auth token ID.
AUTH_TOKEN_URI: "/auth/realms/{{ AUTH_REALM }}/protocol/openid-connect/token"
# The Auth host name
AUTH_HOST_NAME: "{{ SSO_SITE_HOST_NAME }}"
# The Auth port.
AUTH_PORT: 443
# Whether the Auth server uses SSL.
AUTH_SSL: true
# Whether the Auth server requires SSL.
AUTH_SSL_REQUIRED: all
# The Auth URL.
AUTH_URL: "https://{{ AUTH_HOST_NAME }}/auth"
# The number of Vert.X verticle instances
SITE_INSTANCES: 5
# The size of the Vert.X worker pool
WORKER_POOL_SIZE: 5
# The size of the persistent volume for downloading FTP data and extracting the contents.
FTP_VOLUME_SIZE: 10Gi
READ_BUFFER_SIZE: 1000
API_COUNTER_RESUME: 100
API_COUNTER_FETCH: 200
ENABLE_IMPORT_DATA: false
TIMER_DB_SOLR_SYNC_IN_SECONDS: 1
ENABLE_DB_SOLR_SYNC: false
ENABLE_REFRESH_DATA: false
TIMER_DB_SOLR_SYNC_IN_SECONDS: 1