-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathall.yml
272 lines (236 loc) · 7.76 KB
/
all.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
# Use bastion host
ansible_ssh_common_args: "{% if 'wai-bastion' in groups %} -o ProxyCommand='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -W %h:%p {{ hostvars[groups['wai-bastion'][0]]['ansible_user'] }}@{{ hostvars[groups['wai-bastion'][0]]['ansible_host'] }}{% if ansible_ssh_private_key_file is defined %} -i {{ ansible_ssh_private_key_file }}{% endif %}'{% endif %}"
ansible_ssh_private_key_file: ./ssh_wai_key
# Development tasks
wai_development: false
# Ensure python v3 is used on the remote hosts
ansible_python_interpreter: /usr/bin/python3
# WAI alert destination
wai_alert_email_destination:
- example@example.org
- test@test.it
# WAI
wai_k8s_deployment_dir: /opt/data/scripts/wai
wai_k8s_namespaces:
- wai-prod
- wai-play
- wai-stag
# Database
db_dump_dir: /root
# Base fqdn domain
wai_base_domain:
wai-prod: webanalytics.italia.it
wai-play: play.webanalytics.italia.it
wai-stag: staging.webanalytics.italia.it
# WAI Load Balancer
# The following IP addresses are just placeholders and must be replaced with the real ones after all the LBs are created.
wai_load_balancer:
wai-prod:
elastic:
- 10.0.30.101
rdbms:
- 10.0.20.101
- 10.0.20.101
wai-play:
elastic:
- 10.0.30.101
rdbms:
- 10.0.200.101
wai-stag:
elastic:
- 10.0.30.101
rdbms:
- 10.0.100.101
# WAI infrastructure CIDR
wai_infrastructure_cidr: 10.0.0.0/16
# Hostnames
wai_hostname: { ingestion: ingestion, portal: www, api: api }
# Mapping between public ip address and internal load balancer
# The following IP addresses are just placeholders and must be replaced with the real ones after all the private ip ports are created.
wai_ip_addresses:
wai-prod:
public_ip: 131.1.241.153
private_ip: 10.0.10.250
wai-play:
public_ip: 131.1.241.135
private_ip: 10.0.10.251
wai-stag:
public_ip: 131.1.241.131
private_ip: 10.0.10.252
# Helm
helm:
cert_manager:
version: v1.0.3
# Matomo POD size configuration
wai_matomo_pod_size:
wai-prod: { wai-portal: 4, wai-reporting: 4, wai-api: 4, matomo-portal: 4, matomo-worker: 8, matomo-ingestion: 8, matomo-api: 4 }
wai-play: { wai-portal: 4, wai-reporting: 4, wai-api: 4, matomo-portal: 4, matomo-worker: 8, matomo-ingestion: 8, matomo-api: 4 }
wai-stag: { wai-portal: 2, wai-reporting: 2, wai-api: 2, matomo-portal: 2, matomo-worker: 2, matomo-ingestion: 2, matomo-api: 2 }
# Matomo pod resources
wai_matomo_resources:
default: { limits: { cpu: 750m, memory: 250Mi }, requests: { cpu: 750m, memory: 250Mi } }
wai-prod:
matomo-ingestion: {}
matomo-api: {}
matomo: { limits: { cpu: 750m, memory: 4Gi }, requests: { cpu: 750m, memory: 4Gi } }
matomo-worker: { limits: { cpu: 500m, memory: 512Mi }, requests: { cpu: 500m, memory: 512Mi } }
matomo-cron-job: { limits: { cpu: 4, memory: 11Gi }, requests: { cpu: 4, memory: 11Gi } }
wai-play:
matomo-ingestion: {}
matomo-api: {}
matomo: {}
matomo-worker: {}
matomo-cron-job: { limits: { cpu: 2, memory: 2Gi }, requests: { cpu: 2, memory: 2Gi } }
wai-stag:
matomo-ingestion: {}
matomo-api: {}
matomo: {}
matomo-worker: {}
matomo-cron-job: { limits: { cpu: 500m, memory: 256Mi }, requests: { cpu: 500m, memory: 256Mi } }
wai_matomo_php_extra_vars:
wai-prod:
matomo-ingestion:
php-fpm:
pm.max_children: 8
php-ini: {}
matomo-api:
php-fpm: {}
php-ini: {}
matomo:
php-fpm: {}
php-ini:
memory_limit: 4096M
matomo-worker:
php-fpm: {}
php-ini: {}
matomo-cron-job:
php-fpm: {}
php-ini:
memory_limit: 10240M
wai-play:
matomo-ingestion:
php-fpm:
pm.max_children: 8
php-ini: {}
matomo-api:
php-fpm: {}
php-ini: {}
matomo:
php-fpm: {}
php-ini: {}
matomo-worker:
php-fpm: {}
php-ini: {}
matomo-cron-job:
php-fpm: {}
php-ini:
memory_limit: 2048M
wai-stag:
matomo-ingestion:
php-fpm:
pm.max_children: 4
php-ini: {}
matomo-api:
php-fpm: {}
php-ini: {}
matomo:
php-fpm: {}
php-ini: {}
matomo-worker:
php-fpm: {}
php-ini: {}
matomo-cron-job:
php-fpm: {}
php-ini:
memory_limit: 256M
# Matomo archiving cronjob
wai_matomo_cronjob:
wai-prod:
schedule: "00 01 * * *"
schedule_segments: "00 14 * * 0"
wai-play:
schedule: "00 05 * * *"
schedule_segments: "00 14 * * 0"
wai-stag:
schedule: "00 07 * * *"
schedule_segments: "00 14 * * 0"
# Resource Quota
wai_k8s_resource_quota:
wai-prod: { requests.cpu: "50", requests.memory: "64Gi", limits.cpu: "60", limits.memory: "80Gi" }
wai-play: { requests.cpu: "50", requests.memory: "64Gi", limits.cpu: "60", limits.memory: "80Gi" }
wai-stag: { requests.cpu: "24", requests.memory: "30Gi", limits.cpu: "34", limits.memory: "40Gi" }
# IPA Redisearch image
wai_ipa_redisearch_image: webanalyticsitalia/wai-ipa-redisearch
wai_ipa_redisearch_image_tag: 5.0.12-stable
# Portal image
wai_portal_image: webanalyticsitalia/wai-portal
wai_portal_image_tag: 2.4.0-beta-api
wai_portal_matomo_sub_path: /matomo
wai_portal_environments:
wai-prod: production
wai-play: public-playground
wai-stag: staging
# RediSearch Image
wai_redisearch_image: webanalyticsitalia/wai-redisearch
wai_redisearch_image_tag: 5.0.12-stable
wai_redisearch_slave_count: 2
# Redis
redis_image_version: 5.0.7
# Matomo Image
wai_matomo_image: webanalyticsitalia/wai-matomo
wai_matomo_image_tag: 3.14.1-9
# Wai NGINX Openresty
wai_nginx_openresty: webanalyticsitalia/wai-openresty
wai_nginx_openresty_tag: 1.0.2-stable
# WAI Cache Image
wai_cache_image: varnish
wai_cache_image_tag: 6.5.1
# WAI Kong Image
wai_kong_image: webanalyticsitalia/wai-kong
wai_kong_image_tag: 2.4.1
wai_kong_pod_size:
wai-prod: 4
wai-play: 2
wai-stag: 1
# WAI API Image
wai_api_image: webanalyticsitalia/wai-api
wai_api_image_tag: 0.0.1-beta
wai_api_pod_size:
wai-prod: 4
wai-play: 2
wai-stag: 1
# Kubectl executable
wai_kubectl: /usr/local/bin/kubectl
# Base K8S Node port for http
wai_base_http_port: 30080
# Base K8S Node port for https
wai_base_https_port: 30443
# Elastic version used for Elasticsearch, Kibana and Beats.
# These vars override default settings of role elastic.elasticsearch and are used in wai roles kibana
es_version: 7.9.1
es_major_version: 7.x
es_apt_key: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
es_apt_url: "deb https://artifacts.elastic.co/packages/{{ es_major_version }}/apt stable main"
kibana_elastic_hosts: "https://{{ hostvars[groups['elastic'][0]].ansible_default_ipv4.address }}:9200"
# Override path used to store Docker data in kubespray all\docker.yml
docker_daemon_graph: "/opt/data/docker"
# GlusterFS
gluster_apt_repo: ppa:gluster/glusterfs-5
gluster_package_version: 5.*
# MariaDB repo info
mariadb_version: "10.5"
mariadb_repo: "deb [arch=amd64,i386,ppc64el] http://mariadb.mirrors.ovh.net/MariaDB/repo/{{ mariadb_version }}/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} main"
mariadb_repo_key: "0xF1656F24C74CD1D8"
mariadb_repo_keyserver: "keyserver.ubuntu.com"
mariadb_repo_origin: mariadb.mirrors.ovh.net
# Prometheus Node Exporter override vars
prometheus_exporter_url: https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
# Prometheus MySQL exporter override vars
prometheus_mysqld_exporter_url: https://github.com/prometheus/mysqld_exporter/releases/download/v0.12.1/mysqld_exporter-0.12.1.linux-amd64.tar.gz
# Heketi role overrides
heketi_url: https://github.com/heketi/heketi/releases/download/v9.0.0/heketi-v9.0.0.linux.amd64.tar.gz
heketi_enable_tls: true
heketi_port: 8443
# OpenVPN
# This is needed to set IP filtered login to Matomo
openvpn_server_addr: 156.54.44.90/32