-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
no-regrets.sh
279 lines (266 loc) Β· 9.97 KB
/
no-regrets.sh
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
#!/bin/bash
# --------------------------------------------------
# π WORKSPACE
# --------------------------------------------------
source $TF_VAR_PATH/constants.sh
export TF_VAR_HOST=$TF_VAR_HOST_EXAMPLE
source $TF_VAR_PATH/workspace.sh
# --------------------------------------------------
# π JWT
# --------------------------------------------------
export TF_VAR_JWT_ISSUER="https://id."$TF_DOMAIN
export TF_VAR_JWT_AUDIENCE="https://"$TF_DOMAIN
export TF_VAR_JWT_SECRET="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
export TF_VAR_JWT_TIME="10:00:00"
# --------------------------------------------------
# π§βπ» PROVIDERS
# --------------------------------------------------
# -- github
export TF_VAR_GITHUB_NAME="github"
export TF_VAR_GITHUB_USER="SomeUsername"
export TF_VAR_GITHUB_EMAIL=$TF_VAR_GITHUB_USER"@example.com"
# -- google
export TF_VAR_GOOGLE_TEXTTOSPEECH_API_KEY="YourGoogleTextToSpeechApiKey"
# --------------------------------------------------
# π NETWORK
# --------------------------------------------------
# -- nginx
export TF_VAR_NGINX_NAME="nginx"
# -- metallb
export TF_VAR_METALLB_NAME="metallb"
# -- npm
export TF_VAR_NPM_NAME="npm"
export TF_VAR_NPM_USER="admin@"$TF_DOMAIN
export TF_VAR_NPM_PASSWORD="changeme"
# -- traefik
export TF_VAR_TRAEFIK_NAME="traefik"
export TF_VAR_TRAEFIK_USER="SomeUsername"
export TF_VAR_TRAEFIK_PASSWORD="UltraSecretPassword123!"
# -- mail-in-a-box
export TF_VAR_MAILINABOX_DOMAIN="box."$TF_DOMAIN
export TF_VAR_MAILINABOX_USER="admin@"$TF_DOMAIN
export TF_VAR_MAILINABOX_PASSWORD="UltraSecretPassword123!"
# -- papercut
export TF_VAR_PAPERCUT_NAME="papercut"
# --------------------------------------------------
# πΎ DATABASES
# --------------------------------------------------
# -- cassandra
export TF_VAR_CASSANDRA_NAME="cassandra"
export TF_VAR_CASSANDRA_USER="SomeUsername"
export TF_VAR_CASSANDRA_PASSWORD="UltraSecretPassword123!"
# -- postgres
export TF_VAR_POSTGRES_NAME="postgres"
export TF_VAR_POSTGRES_USER="SomeUsername"
export TF_VAR_POSTGRES_PASSWORD="UltraSecretPassword123!"
# -- mysql
export TF_VAR_MYSQL_NAME="mysql"
export TF_VAR_MYSQL_USER="SomeUsername"
export TF_VAR_MYSQL_PASSWORD="UltraSecretPassword123!"
# -- mariadb
export TF_VAR_MARIADB_NAME="mariadb"
export TF_VAR_MARIADB_USER="SomeUsername"
export TF_VAR_MARIADB_PASSWORD="UltraSecretPassword123!"
# -- mongodb
export TF_VAR_MONGODB_NAME="mongodb"
export TF_VAR_MONGODB_USER="SomeUsername"
export TF_VAR_MONGODB_PASSWORD="UltraSecretPassword123!" # URL
# -- redis
export TF_VAR_REDIS_NAME="redis"
export TF_VAR_REDIS_USER="SomeUsername"
export TF_VAR_REDIS_PASSWORD="UltraSecretPassword123!"
# -- redis-commander
export TF_VAR_REDISCOMMANDER_NAME="redis-commander"
# -- memcached
export TF_VAR_MEMCACHED_NAME="memcached"
# -- prometheus
export TF_VAR_PROMETHEUS_NAME="prometheus"
export TF_VAR_PROMETHEUS_USER="SomeUsername"
export TF_VAR_PROMETHEUS_PASSWORD="UltraSecretPassword123!"
# -- elasticsearch
export TF_VAR_ELASTICSEARCH_NAME="elasticsearch"
export TF_VAR_ELASTICSEARCH_USER="SomeUsername"
export TF_VAR_ELASTICSEARCH_PASSWORD="UltraSecretPassword123!"
# -- kibana
export TF_VAR_KIBANA_NAME="kibana"
# -- grafana
export TF_VAR_GRAFANA_NAME="grafana"
export TF_VAR_GRAFANA_USER="admin"
export TF_VAR_GRAFANA_PASSWORD="admin"
# -- pgadmin
export TF_VAR_PGADMIN_NAME="pgadmin"
export TF_VAR_PGADMIN_USER=$TF_VAR_MAILINABOX_USER
export TF_VAR_PGADMIN_PASSWORD="UltraSecretPassword123!"
# -- phpmyadmin
export TF_VAR_PHPMYADMIN_NAME="phpmyadmin"
# --------------------------------------------------
# π SECURITY
# --------------------------------------------------
# -- vault
export TF_VAR_VAULT_NAME="vault"
export TF_VAR_VAULT_TOKEN_ROOT="77777777-7777-7777-7777-777777777777"
export TF_VAR_VAULT_TOKEN_USER="00000000-0000-0000-0000-000000000000"
# -- vaultwarden
export TF_VAR_VAULTWARDEN_NAME="vaultwarden"
export TF_VAR_VAULTWARDEN_DOMAIN=$TF_VAR_VAULTWARDEN_NAME"."$TF_DOMAIN
export TF_VAR_VAULTWARDEN_ADMIN_PASSWORD="UltraSecretPassword123!"
export TF_VAR_VAULTWARDEN_ADMIN_TOKEN='$argon2id$v=19$m=65540,t=3,p=4$gxCIeCjT3gHdbVwWKd86lHjq1wWp6a9+NlScRmaeBOw$XKlvjpjCIjy6kfVPjSpOHe2mjA5TOeoxPwLnb9uzYRY'
# -- keycloak
export TF_VAR_KEYCLOAK_NAME="keycloak"
export TF_VAR_KEYCLOAK_USER="SomeUsername"
export TF_VAR_KEYCLOAK_PASSWORD="UltraSecretPassword123!"
# -- twingate
export TF_VAR_TWINGATE_NAME="twingate"
export TF_VAR_TWINGATE_DOMAIN="twingate.com"
export TF_VAR_TWINGATE_TENANT_NETWORK="SomeNetwork"
export TF_VAR_TWINGATE_ACCESS_TOKEN="UltraSecretPassword123!"
export TF_VAR_TWINGATE_REFRESH_TOKEN="UltraSecretPassword123!"
export TF_VAR_TWINGATE_LABEL_HOSTNAME="`hostname`"
# -- guacamole
export TF_VAR_GUACD_NAME="guacd"
export TF_VAR_GUACAMOLE_NAME="guacamole"
export TF_VAR_GUACAMOLE_USER="guacadmin"
export TF_VAR_GUACAMOLE_PASSWORD="guacadmin"
# -- pihole
export TF_VAR_PIHOLE_NAME="pihole"
export TF_VAR_PIHOLE_PASSWORD="UltraSecretPassword123!%"
export TF_VAR_PIHOLE_TZ="Europe/Brussel"
# --------------------------------------------------
# π οΈ TOOLS
# --------------------------------------------------
# -- filebrowser
export TF_VAR_FILEBROWSER_NAME="filebrowser"
export TF_VAR_FILEBROWSER_USER="admin"
export TF_VAR_FILEBROWSER_PASSWORD="admin"
# -- kutt
export TF_VAR_KUTT_NAME="kutt"
export TF_VAR_KUTT_PASSWORD="UltraSecretPassword123!"
# -- searxng
export TF_VAR_SEARXNG_NAME="searxng"
# -- dashy
export TF_VAR_DASHY_NAME="dashy"
# -- uptime-kuma
export TF_VAR_UPTIMEKUMA_NAME="uptime-kuma"
export TF_VAR_UPTIMEKUMA_USER=$TF_VAR_MAILINABOX_USER
export TF_VAR_UPTIMEKUMA_PASSWORD="UltraSecretPassword123!"
# -- listmonk
export TF_VAR_LISTMONK_NAME="listmonk"
export TF_VAR_LISTMONK_USER="listmonk"
export TF_VAR_LISTMONK_PASSWORD="listmonk"
# -- freescout
export TF_VAR_FREESCOUT_NAME="freescout"
export TF_VAR_FREESCOUT_PASSWORD="UltraSecretPassword123!"
export TF_VAR_FREESCOUT_TZ="Etc/UTC"
# -- rustdesk
export TF_VAR_RUSTDESK_NAME="rustdesk"
export TF_VAR_RUSTDESK_USER="admin"
export TF_VAR_RUSTDESK_PASSWORD="test1234"
# -- stirling-pdf
export TF_VAR_STIRLINGPDF_NAME="stirling-pdf"
export TF_VAR_STIRLINGPDF_LANG="en_GB"
# -- stirling-pdf
export TF_VAR_JELLYFIN_NAME="jellyfin"
# --------------------------------------------------
# π» DEVELOPMENT
# --------------------------------------------------
# -- rabbitmq
export TF_VAR_RABBITMQ_NAME="rabbitmq"
export TF_VAR_RABBITMQ_USER="SomeUsername"
export TF_VAR_RABBITMQ_PASSWORD="UltraSecretPassword123!"
# -- harbor
export TF_VAR_HARBOR_NAME="harbor"
export TF_VAR_HARBOR_USER="admin"
export TF_VAR_HARBOR_PASSWORD="UltraSecretPassword123!"
export TF_VAR_HARBOR_HTTP_SECRET="UltraSecretPassword123!"
export TF_VAR_HARBOR_CORE_SECRET="UltraSecretPassword123!"
export TF_VAR_HARBOR_JOBSERVICE_SECRET="UltraSecretPassword123!"
# -- gitlab
export TF_VAR_GITLAB_NAME="gitlab"
export TF_VAR_GITLAB_USER="admin"
export TF_VAR_GITLAB_PASSWORD="UltraSecretPassword123!"
export TF_VAR_GITLAB_KEY_DB="UltraSecretPassword123!"
export TF_VAR_GITLAB_KEY_SECRET="UltraSecretPassword123!"
export TF_VAR_GITLAB_KEY_OTP="UltraSecretPassword123!"
export TF_VAR_GITLAB_TZ="Europe/Brussel"
# -- code-server
export TF_VAR_CODESERVER_NAME="code-server"
export TF_VAR_CODESERVER_USER="abc"
export TF_VAR_CODESERVER_PASSWORD="UltraSecretPassword123!"
export TF_VAR_CODESERVER_TZ="Etc/UTC"
# -- jenkins
export TF_VAR_JENKINS_NAME="jenkins"
export TF_VAR_JENKINS_USER="admin"
export TF_VAR_JENKINS_PASSWORD="UltraSecretPassword123!"
# --------------------------------------------------
# π₯· HACK
# --------------------------------------------------
# -- phoneinfoga
export TF_VAR_PHONEINFOGA_NAME="phoneinfoga"
export TF_VAR_PHONEINFOGA_NUMVERIFY_API_KEY="UltraSecretPassword123!"
export TF_VAR_PHONEINFOGA_GOOGLE_CSE_CX="UltraSecretPassword123!"
export TF_VAR_PHONEINFOGA_GOOGLE_API_KEY="UltraSecretPassword123!"
# -- sherlock
export TF_VAR_SHERLOCK_NAME="sherlock"
# -- storm-breaker
export TF_VAR_STORMBREAKER_NAME="storm-breaker"
export TF_VAR_STORMBREAKER_USER="SomeUsername"
export TF_VAR_STORMBREAKER_PASSWORD="UltraSecretPassword123!"
export TF_VAR_STORMBREAKER_NGROK_API_KEY="UltraSecretPassword123!"
# -- softether
export TF_VAR_SOFTETHER_NAME="softether"
# -- beef
export TF_VAR_BEEF_NAME="beef"
export TF_VAR_BEEF_USER="SomeUsername"
export TF_VAR_BEEF_PASSWORD="UltraSecretPassword123!"
# -- hack
export TF_VAR_HACK_NAME="hack"
# --------------------------------------------------
# π OPERATING SYSTEM
# --------------------------------------------------
# -- ubuntu
export TF_VAR_UBUNTU_NAME="ubuntu"
# -- kali
export TF_VAR_KALI_NAME="kali"
# -- puter
export TF_VAR_PUTER_NAME="puter"
# --------------------------------------------------
# π€ AI
# --------------------------------------------------
# -- ollama
export TF_VAR_OLLAMA_NAME="ollama"
# -- chatgpt
export TF_VAR_CHATGPT_NAME="chatgpt"
# --------------------------------------------------
# βοΈ SMTP
# --------------------------------------------------
# -- box
export TF_VAR_SMTP_HOST=$TF_VAR_MAILINABOX_DOMAIN
export TF_VAR_SMTP_SECURITY="starttls"
export TF_VAR_SMTP_STARTTLS=true
export TF_VAR_SMTP_PORT=587
export TF_VAR_SMTP_USERNAME=$TF_VAR_MAILINABOX_USER
export TF_VAR_SMTP_PASSWORD=$TF_VAR_MAILINABOX_PASSWORD
export TF_VAR_IMAP_HOST=$TF_VAR_MAILINABOX_DOMAIN
export TF_VAR_IMAP_PORT=993
export TF_VAR_IMAP_SSL=true
export TF_VAR_IMAP_STARTTLS=false
export TF_VAR_IMAP_USERNAME=$TF_VAR_MAILINABOX_USER
export TF_VAR_IMAP_PASSWORD=$TF_VAR_MAILINABOX_PASSWORD
# -- gmail (overrides box in case port 25 is blocked)
export TF_VAR_SMTP_HOST="smtp.gmail.com"
export TF_VAR_SMTP_SECURITY="starttls"
export TF_VAR_SMTP_STARTTLS=true
export TF_VAR_SMTP_PORT=587
export TF_VAR_SMTP_USERNAME=$TF_VAR_GITHUB_EMAIL
export TF_VAR_SMTP_PASSWORD="UltraSecretPassword123!"
export TF_VAR_IMAP_HOST="imap.gmail.com"
export TF_VAR_IMAP_PORT=993
export TF_VAR_IMAP_SSL=true
export TF_VAR_IMAP_STARTTLS=false
export TF_VAR_IMAP_USERNAME=$TF_VAR_GITHUB_EMAIL
export TF_VAR_IMAP_PASSWORD="UltraSecretPassword123!"
# --------------------------------------------------
# π OWN APPS
# --------------------------------------------------
# -- checkmail
export TF_VAR_CHECKMAIL_BACK="checkmail-back"