forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.yml
358 lines (248 loc) · 6.69 KB
/
vars.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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
#
# Do not edit this file directly
# Instead, add your customizations to group_vars/your-inventory-name/vars.yml
# For secret variables, use group_vars/your-inventory-name/vault.yml
#
#
# Misc
#
timezone: Europe/Amsterdam
dns_nameservers: [9.9.9.9, 149.112.112.112]
dot_nameservers: [185.95.218.42@853#dns.digitale-gesellschaft.ch, 94.140.15.140@853#dns-unfiltered.adguard.com]
ntp_timezone: "{{ timezone }}"
locale: en_US.UTF-8
lan_network: "{{ '.'.join(ansible_default_ipv4.address.split('.')[0:3]) }}.0/24"
fish_prompt_color: blue
keyboard_layout: us
username: notthebee
guid: "1000"
shell: /usr/bin/fish
docker_dir: /opt/docker/data
dotfiles_repo: https://github.com/notthebee/dotfiles
boot_drive_serial: ""
enable_pikvm: true
pikvm_address: pikvm.box
spindown_time: 600 # in seconds
colorscheme: nord
#
# Packages
#
extra_packages:
- fish
- iperf3
- speedtest-cli
- htop
- stow
- git
- neofetch
- neovim
- tmux
- mosh
- rsync
- lm-sensors
- iotop
- ncdu
- hddtemp
- reptyr
#
# Apt mirrors
#
version: focal
apt_mirror: http://ftp.uni-mainz.de/ubuntu/
#
# Email credentials (for SMART and Snapraid error reporting)
#
email: [email protected]
email_login: "{{ email }}"
email_smtp_host: smtp.mailbox.org
email_smtp_port: 465
email_smtp_port_startls: 587
# MSMTP
msmtp_accounts:
- account: mailbox
host: "{{ email_smtp_host }}"
port: "{{ email_smtp_port_startls }}"
auth: "on"
from: "{{ email }}"
user: "{{ email }}"
password: "{{ email_password }}"
msmtp_default_account: "mailbox"
msmtp_alias_default : "{{ email }}"
#
# SSH (geerlingguy.security)
#
security_ssh_port: 69
security_sudoers_passwordless: [ "{{ username }}" ]
security_autoupdate_reboot: "true"
security_autoupdate_mail_to: "{{ email }}"
security_autoupdate_mail_on_error: true
security_fail2ban_enabled: false
#
# Enable/disable individual Docker containers
#
# Home automation
enable_deconz: true
enable_homeassistant: true
# Media
enable_plex: false
enable_jellyfin: true
enable_photoprism: true
enable_booksonic: true
# Yo-ho-ho
enable_deluge: true
enable_sonarr: true
enable_radarr: true
enable_openbooks: true
enable_jackett: true
# Public-facing services
enable_nextcloud: true
enable_vaultwarden: true
enable_swag: true
# DDNS
enable_duckdns: false
enable_cloudflare-ddns: true
enable_ddclient: true
# VPN
enable_wireguard: true
enable_ikev2: true
# Homepages
enable_homer: true
enable_flame: false
# Misc
enable_unifi: false
enable_authelia: true
enable_pihole: true
enable_watchtower: true
#
# Time Machine
#
timemachine_root: /mnt/timemachine
timemachine_drive: /dev/disk/by-label/TimeMachine
enable_timemachine: true
#
# IKEv2
#
ikev2_ondemand: true
#
# Samba
#
enable_samba: true
samba_server_string: "{{ hostname }}"
samba_users:
- name: "{{ username }}"
password: "{{ password }}"
- name: "{{ additional_users[0].name }}"
password: "{{ password2 }}"
samba_global_include: global-include.conf
samba_apple_extensions: yes
samba_mitigate_cve_2017_7494: false
samba_server_max_protocol: "SMB3"
samba_server_min_protocol: "SMB3"
samba_shares:
- name: Trash
guest_ok: no
public: no
read_only: no
writable: yes
owner: "{{ username }}"
browseable: yes
path: "{{ mergerfs_root }}"
valid_users: "{{ username }}"
write_list: "{{ username }}"
- name: Downloads
guest_ok: no
public: no
read_only: no
writable: yes
browseable: yes
owner: "{{ username }}"
path: "{{ mergerfs_root }}/Downloads"
valid_users: "{{ username }}, {{ additional_users[0].name }}"
write_list: "{{ username }}, {{ additional_users[0].name }}"
- name: Media
guest_ok: no
public: no
read_only: no
writable: yes
browseable: yes
owner: "{{ username }}"
path: "{{ mergerfs_root }}/Media"
valid_users: "{{ username }}, {{ additional_users[0].name }}"
write_list: "{{ username }}, {{ additional_users[0].name }}"
- name: TimeMachine
guest_ok: no
public: no
read_only: no
owner: "{{ username }}"
vfs_objects:
- name: fruit
options:
- name: time machine
value: 'yes'
- name: streams_xattr
writable: yes
browseable: yes
path: "{{ timemachine_root }}"
valid_users: "{{ username }}"
write_list: "{{ username }}"
#
# Snapraid and MergerFS
#
mergerfs_root: /mnt/storage
disks:
- { path: /mnt/data1, src: /dev/disk/by-label/Data1, content: true }
- { path: /mnt/data2, src: /dev/disk/by-label/Data2, content: true }
- { path: /mnt/data3, src: /dev/disk/by-label/Data3, content: true }
cache_disks:
- { path: /mnt/cache1, src: /dev/disk/by-label/Cache1, content: true }
parity_disks:
- { path: /mnt/parity1, src: /dev/disk/by-label/Parity1, content: true }
snapraid_data_disks: "{{ disks }}"
snapraid_parity_disks: "{{ parity_disks }}"
snapraid_runner_gmail_pass: "{{ email_password }}"
snapraid_runner_email_address: "{{ email }}"
snapraid_runner_email_address_from: "{{ snapraid_runner_email_address }}"
snapraid_runner_email_address_to: "{{ snapraid_runner_email_address }}"
snapraid_runner_smtp_host: "{{ email_smtp_host }}"
snapraid_runner_smtp_port: "{{ email_smtp_port }}"
snapraid_runner_command: "python3 {{ snapraid_runner_bin }} -c {{ snapraid_runner_conf }}"
# Stop all the docker containers, backup the {{ docker_dir }} to the MergerFS pool, execute the snapraid runner and start the containers back up
# Stopping the containers is necessary – backing up the data folder with the containers running will result in corrputed database files and no files can be changed during the Snapraid sync
snapraid_runner_cron_jobs:
- { job: 'docker stop $(docker ps -q); rsync -avz --delete --exclude cache {{ docker_dir }} {{ mergerfs_root }}/docker_data; docker start $(docker ps -a -q) && {{ snapraid_runner_command }} ', name: 'snapraid_runner', weekday: '0', hour: '3' }
snapraid_runner_delete_threshold: 999999
snapraid_runner_email_sendon: "error"
snapraid_runner_use_ssl: true
snapraid_content_files:
- /var/snapraid.content
snapraid_config_excludes:
- "*.unrecoverable"
- /lost+found/
- "*.!sync"
- /tmp/
- "/Downloads/*"
#
# SMART error reporting
#
smartd_default_mail_recipients: [ "{{ email }}" ]
### BEGIN Secret variables (encrypt and put into vault.yml)
cloudflare_dns_token: ''
cloudflare_firewall_token: ''
email_password: ''
host: ''
host_local: ''
ikev2_excludedssids: ''
namecheap_host: ''
namecheap_token: ''
password: ''
photoprism_password: ''
pihole_password: ''
pikvm_password: ''
piped_postgresql_password: ''
ssh_public_key: ''
subdomains: ''
swag_htpasswd_password: ''
swag_htpasswd_user: ''
vpn_host: ''
vpn_password: ''
### END Secret variables (encrypt and put into vault.yml)