-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
289 lines (229 loc) · 6.9 KB
/
site.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
285
286
287
288
289
---
- name: Ritsu-pi Project
hosts: ritsu_pi
gather_facts: true
vars_files:
- secrets.yml
vars:
# Location where configuration files be stored.
# Note: ALWAYS USE ABSOLUTE PATH
config_dir: /media/primary/ritsu-pi2
# Timezone
timezone: Asia/Jakarta
# Flame dashboard
flame_hostname: 10.20.20.102
# Docker
docker_user:
uid: "1000"
gid: "1000"
docker_network:
name: mainnet
driver: bridge
subnet: "172.18.0.1/16"
gateway: "172.18.0.1"
roles:
# ===> common
- role: common
tags: [common]
vars:
common_config_static_ip: true
# ===> dashboard
- role: flame
tags: [common, dashboard]
vars:
flame_state: present
# docker image
flame_image: pawelmalak/flame:multiarch2.3.1
# default password
flame_password: "{{ flame_dashboard_password }}"
# ===> networking
- role: dnscrypt
tags: [networking, security, dnscrypt]
vars:
dnscrypt_state: present
# docker image
dnscrypt_image: klutchell/dnscrypt-proxy:v2.55.02.1.5
# internal docker network config
dnscrypt_bind_ip: "172.18.1.100"
dnscrypt_bind_dns_port: 54
# upstream DNS servers
dnscrypt_upstream_dns:
- cloudflare
- google
- role: pihole
tags: [networking, security, pihole]
vars:
pihole_state: present
# docker image
pihole_image: pihole/pihole:2024.07.0
# web UI access
pihole_port: 8003
# pihole_password: "{{ pihole_password }}" # defined in secrets.yml
# enable DNSCrypt integration
# this config can only be enabled for first time installation
pihole_dnscrypt: true
- role: gluetun
tags: [networking, security, gluetun]
vars:
gluetun_state: present
# docker image
gluetun_image: qmcgaw/gluetun:v3.39.1
# published port
gluetun_published_ports:
# qBittorrent
- 8006:8006
- 6881:6881
- 6881:6881/udp
# JDownloader 2
- 3129:3129
# ===> downloaders
- role: jdownloader
tags: [networking, file, jdownloader]
vars:
jdownloader_state: present
# Docker
jdownloader_image: antlafarge/jdownloader:latest
# download directory
jdownloader_download_dir: /media/primary/downloads
# use gluetun?
jdownloader_gluetun: true
# MyJDownloader
jdownloader_myjd:
device: RAMIEL-PI
email: "{{ jdownloader_myjd_email }}" # defined in secrets.yml
password: "{{ jdownloader_myjd_password }}" # defined in secrets.yml
- role: qbittorrent
tags: [networking, file, qbittorrent]
vars:
qbittorrent_state: present
qbittorrent_image: lscr.io/linuxserver/qbittorrent:5.0.0
# web UI access
qbittorrent_port: 8006
# download directory
qbittorrent_download_dir: /media/primary/downloads
# use gluetun?
qbittorrent_gluetun: true
# ===> media server
- role: jellyfin
tags: [media, jellyfin]
vars:
jellyfin_state: present
# docker image
jellyfin_image: jellyfin/jellyfin:10.9.11
# web UI access
jellyfin_port: 8002
# media directory containing movies, music, etc.
jellyfin_media_dir: /media/primary/media
- role: samba
tags: [media, file, samba]
vars:
samba_state: present
# SMB user
samba_user:
username: "{{ samba_user_username }}" # defined in secrets.yml
password: "{{ samba_user_password }}" # defined in secrets.yml
# directories to share
samba_mount_points:
- name: ramiel_primary
path: /media/primary
writeable: true
create_mask: "0777"
directory_mask: "0777"
public: false
# ===> monitoring
- role: prometheus
tags: [monitoring, prometheus]
vars:
prometheus_state: present
prometheus_image: prom/prometheus:v2.55.0
# web UI access
prometheus_port: 8005
# retention
prometheus_retention:
time: 2y
size: 100GB
# apps to be monitored
prometheus_exporters:
node:
enabled: false
version: 1.8.2
arch: linux-armv7
install_path: /usr/local/bin/node_exporter
port: 8102
user_owner: node-exporter
user_group: node-exporter
blackbox:
enabled: true
state: present
image: prom/blackbox-exporter:v0.25.0
port: 8102
ping_hosts:
- https://www.google.com
- https://www.github.com
cadvisor:
enabled: true
state: present
image: gcr.io/cadvisor/cadvisor:v0.50.0
port: 8101
mikrotik:
enabled: true
state: present
image: ghcr.io/akpw/mktxp:1.2.9
port: 8103
# Mikrotik router host
router:
host: 10.20.20.1
port: 8728
# Mikrotik user with API access
user:
username: "{{ mktxp_username }}" # defined in secrets.yml
password: "{{ mktxp_password }}" # defined in secrets.yml
speedtest:
enabled: true
state: present
image: miguelndecarvalho/speedtest-exporter:v3.5.4
port: 8105
# Configure the sample_interval to limit the number of checks interval because
# the speed test will consume a considerable amount of bandwidth.
scrape_interval: 1h
- role: grafana
tags: [monitoring, grafana]
vars:
grafana_state: present
grafana_image: grafana/grafana:11.3.0
# web UI access
grafana_port: 8001
# login info
# grafana_password: "{{ grafana_password }}" # defined in secrets.yml
grafana_allow_signup: false
# provisioning
grafana_provision_dashboard:
node: true
blackbox: true
cadvisor: true
mikrotik: true
speedtest: true
- role: portainer
tags: [monitoring, portainer]
vars:
portainer_state: present
# docker image
portainer_image: portainer/portainer-ce:2.21.4
# web UI access
portainer_port: 8004
- role: mlflow
tags: [monitoring, mlflow]
vars:
mlflow_state: present
# docker image
mlflow_image: ghcr.io/mlflow/mlflow:v2.17.0
# web UI access
mlflow_port: 8009
- role: seq
tags: [monitoring, seq]
vars:
seq_state: present
# docker image
seq_image: datalust/seq:2024.3
# web UI
seq_port: 8008