/
/
/
Ansible role that deployes services on my runner machine
1---
2# Runner Services Role Defaults
3# Multi-service container deployment with NFS integration
4
5# ==============================================================================
6# GENERAL SETTINGS
7# ==============================================================================
8runner_enabled: true
9# Legacy variables - no longer used with consolidated structure
10# runner_docker_dir: "/docker/runner" # Now each service uses /docker/[service]
11# runner_data_dir: "/docker/runner-data" # Now consolidated into each service directory
12runner_nfs_mount_dir: "/mnt/docker"
13runner_snapshot_dir: "{{ runner_nfs_mount_dir }}/frigate/snapshots"
14runner_user: "{{ ansible_user }}"
15runner_group: "users"
16runner_uid: 1000
17runner_gid: 1000
18
19# Timezone configuration
20runner_timezone: "{{ system_timezone }}"
21
22# Docker network for runner services
23runner_docker_network: "runner-network"
24runner_network_subnet: "172.20.0.0/16"
25
26# NFS Configuration
27runner_nfs_enabled: true
28runner_nas_host: "{{ vault_storage.nas_host | default('storage.home') }}"
29runner_nfs_options: "nfsvers=4.1,proto=tcp,hard,timeo=600,retrans=2,rsize=16777216,wsize=16777216,nconnect=8,noatime,_netdev"
30
31# ==============================================================================
32# NFS MOUNT CONFIGURATION
33# ==============================================================================
34runner_nfs_mounts:
35 - name: "frigate"
36 local_path: "{{ runner_nfs_mount_dir }}/frigate"
37 nfs_path: "/mnt/rstorage/cctv-data"
38 host: "{{ runner_nas_host }}"
39 options: "{{ runner_nfs_options }}"
40
41 - name: "immich"
42 local_path: "{{ runner_nfs_mount_dir }}/immich"
43 nfs_path: "/mnt/rstorage/media/pictures"
44 host: "{{ runner_nas_host }}"
45 options: "{{ runner_nfs_options }}"
46
47 - name: "forgejo"
48 local_path: "{{ runner_nfs_mount_dir }}/forgejo"
49 nfs_path: "/mnt/rstorage/code-repo"
50 host: "{{ runner_nas_host }}"
51 options: "{{ runner_nfs_options }}"
52
53 - name: "harbor"
54 local_path: "{{ runner_nfs_mount_dir }}/harbor"
55 nfs_path: "/mnt/rstorage/registry-data"
56 host: "{{ runner_nas_host }}"
57 options: "{{ runner_nfs_options }}"
58
59 - name: "cvat"
60 local_path: "{{ runner_nfs_mount_dir }}/cvat"
61 nfs_path: "/mnt/rstorage/cvat-datasets"
62 host: "{{ runner_nas_host }}"
63 options: "{{ runner_nfs_options }}"
64
65 # D&D session agent: ambience, effects, recordings, transcripts and the
66 # campaign knowledge base all live under one mount.
67 - name: "dnd"
68 local_path: "{{ runner_nfs_mount_dir }}/dnd"
69 nfs_path: "/mnt/rstorage/media/dnd"
70 host: "{{ runner_nas_host }}"
71 options: "{{ runner_nfs_options }}"
72
73# ==============================================================================
74# SERVICE CONFIGURATIONS
75# ==============================================================================
76
77# LLM Stack - Unified Local AI Infrastructure
78llm_stack_enabled: true
79llm_stack_config_dir: "/docker/llm-stack"
80
81# Unified LLM Stack Configuration
82llm_stack_ollama_port: 9000
83llm_stack_openwebui_port: 9001
84llm_stack_litellm_port: 9002
85
86# Ollama - Local LLM Server
87llm_stack_ollama_data_dir: "{{ llm_stack_config_dir }}/ollama/data"
88# GPU configuration uses global gpu_enabled parameter
89llm_stack_ollama_default_model: "qwen3:14b"
90llm_stack_ollama_keep_alive: "1h"
91llm_stack_ollama_log_level: "info"
92
93# Pull declared models on deploy. Only models absent from Ollama are fetched,
94# so re-runs are cheap. Set false to manage the model set by hand.
95llm_stack_pull_models: true
96llm_stack_model_pull_timeout: 3600
97
98# Model lineup
99llm_stack_models:
100 - name: "qwen3:14b"
101 role: "default"
102 description: "General-purpose daily driver"
103 - name: "phi4:14b"
104 role: "coder"
105 description: "Coding and analytical tasks"
106 - name: "qwen2.5-coder:14b"
107 role: "coder"
108 description: "Coding specialist (Qwen 2.5 generation)"
109 - name: "deepseek-r1:14b"
110 role: "reasoning"
111 description: "Complex reasoning and chain-of-thought"
112 - name: "qwen3:8b"
113 role: "fast"
114 description: "Lightweight fast tasks"
115 - name: "qwen3:4b"
116 role: "minimal"
117 description: "Quick lightweight tasks; D&D live cue selection"
118 - name: "qwen2.5vl:7b"
119 role: "vision"
120 description: "Battlemap frame understanding for session chronicles"
121
122# OpenWebUI - Web Interface for Ollama
123llm_stack_openwebui_data_dir: "{{ llm_stack_config_dir }}/openwebui/data"
124llm_stack_openwebui_name: "Local AI Assistant"
125llm_stack_openwebui_description: "Self-hosted AI chat interface"
126llm_stack_openwebui_author: "Home Assistant"
127llm_stack_openwebui_default_models: "qwen3:14b"
128llm_stack_openwebui_log_level: "info"
129
130# LiteLLM - Unified LLM Proxy
131llm_stack_litellm_data_dir: "{{ llm_stack_config_dir }}/litellm/data"
132llm_stack_litellm_streaming_enabled: true
133llm_stack_litellm_log_level: "info"
134
135# =============================================================================
136# D&D Session Agent - The Thaumaturgeon
137# One compose project, one switch: dnd_enabled: false removes all of it.
138# =============================================================================
139dnd_enabled: false
140dnd_config_dir: "/docker/dnd"
141
142# Every D&D image comes from Harbor. Shared by the agent, the post-processor
143# and the table server so there is one place to change the registry.
144dnd_registry: "{{ vault_runner.harbor_hostname | default('ys-registry.com') }}"
145dnd_registry_project: "my-services"
146# Ansible runs as root, which has its own docker credential store, so a login
147# is needed even though this host serves the registry.
148dnd_registry_username: "{{ (vault_dnd_table | default({})).registry_username | default('admin') }}"
149dnd_registry_password: >-
150 {{ (vault_dnd_table | default({})).registry_password
151 | default(vault_runner.harbor_admin_password) }}
152
153# Ambience, effects, recordings, transcripts and the campaign knowledge base
154# all live on the NAS under one mount.
155dnd_media_dir: "{{ runner_nfs_mount_dir }}/dnd"
156
157# Files written here are read by people and by the storage host, so the
158# container runs as the storage owner rather than root.
159dnd_uid: 1000
160dnd_gid: 100
161
162# The LiveKit room the agent joins. A stable name, not the random id Meet's
163# "Start Meeting" button generates.
164dnd_room: "dnd"
165dnd_avatar_url: "{{ 'https://' ~ livekit_domain ~ '/' ~ livekit_agent_avatar_filename }}"
166
167# Pulled from Harbor, like the table server. These were built on the runner
168# from rsync'd source, which tied the deploy to a path on one workstation and
169# left no way to tell which commit a running image came from. Build and push
170# with dnd-agent's tools/build-push.sh, then bump the version here.
171dnd_agent_version: "0.2.0"
172dnd_agent_image: >-
173 {{ dnd_registry }}/{{ dnd_registry_project }}/dnd-agent:{{ dnd_agent_version }}
174dnd_post_image: >-
175 {{ dnd_registry }}/{{ dnd_registry_project }}/dnd-post:{{ dnd_agent_version }}
176
177# Post-session processing
178dnd_chronicle_model: "qwen3:14b"
179dnd_model_dir: "{{ dnd_config_dir }}/models"
180# cuda when the driver matches torch's build; cpu still runs above realtime.
181dnd_diarize_device: "cuda"
182
183# Speech to text (Speaches / faster-whisper). Generic and OpenAI-compatible,
184# so anything else on the runner can use it too.
185dnd_stt_model_dir: "{{ dnd_config_dir }}/stt-models"
186dnd_stt_host_port: 9010
187
188# distil-large-v3 is near large-v3 accuracy for English at a fraction of the
189# VRAM, which matters because STT shares the 12 GB card with the cue-selection
190# model during a live session.
191dnd_stt_model: "Systran/faster-distil-whisper-large-v3"
192dnd_stt_compute_type: "int8_float16"
193
194# -1 keeps the model resident forever. Sessions have long silent gaps and a
195# cold reload would add seconds to the live path.
196dnd_stt_model_ttl: -1
197dnd_stt_start_period: "300s"
198dnd_stt_model_download_timeout: 900
199dnd_stt_log_level: "info"
200
201# --- D&D table server -------------------------------------------------------
202# Renders the kiosk page with headless Chromium and streams it to the table Pi,
203# which only hardware-decodes it. This is why the Pi can be a thin appliance:
204# all the rendering happens here, where there is a GPU and no thermal limit.
205#
206# Unlike dnd-agent, this image is pulled from Harbor rather than built here --
207# it is also deployed to the Pi, so one build serves both.
208dnd_table_enabled: false
209# Registry settings are shared with the agent and post-processor above.
210dnd_table_runner_version: "0.3.0"
211dnd_table_runner_image: >-
212 {{ dnd_registry }}/{{ dnd_registry_project }}/dnd-runner:{{ dnd_table_runner_version }}
213
214# Where the kiosk stream is sent. Must match the Pi's TABLE_RTP_PORT.
215dnd_table_pi_host: "dnd-table.home"
216dnd_table_rtp_port: 5600
217
218# 720p to match the projector's native panel; sending 1080p would add a
219# scaling pass on a display that cannot show it.
220dnd_table_width: 1280
221dnd_table_height: 720
222dnd_table_fps: 30
223dnd_table_bitrate_kbps: 4000
224
225# The DM control surface.
226dnd_table_http_port: 8081
227
228# Maps and handouts. Lives on the NAS beside the rest of the campaign media.
229dnd_table_media_dir: "{{ dnd_media_dir }}/table"
230
231# Frigate - AI NVR System
232frigate_enabled: true
233frigate_port: 5000
234frigate_rtmp_port: 1935
235frigate_rtsp_port: 8554
236frigate_go2rtc_port: 1984
237frigate_config_dir: "/docker/frigate"
238frigate_data_dir: "{{ runner_nfs_mount_dir }}/frigate"
239frigate_mqtt_enabled: true
240mqtt_host: "homeassistant.home"
241mqtt_port: 1883
242frigate_hardware_acceleration: "vaapi" # vaapi, nvdec, nvenc, qsv, or none
243
244# Frigate ONVIF default settings
245frigate_onvif_autotracking: false
246
247# Frigate cameras configuration (from vault)
248frigate_cameras:
249 - name: "dining-room"
250 host: "{{ vault_runner.dining_room_camera_host | default('') }}"
251 username: "{{ vault_runner.dining_room_camera_user | default('') }}"
252 password: "{{ vault_runner.dining_room_camera_pass | default('') }}"
253 path: "/stream1"
254 port: 554
255 onvif_port: 2020
256 enabled: true
257
258 - name: "living-room"
259 host: "{{ vault_runner.living_room_camera_host | default('') }}"
260 username: "{{ vault_runner.living_room_camera_user | default('') }}"
261 password: "{{ vault_runner.living_room_camera_pass | default('') }}"
262 path: "/stream1"
263 port: 554
264 onvif_port: 2020
265 enabled: true
266
267 - name: "bed-room"
268 host: "{{ vault_runner.bed_room_camera_host | default('') }}"
269 username: "{{ vault_runner.bed_room_camera_user | default('') }}"
270 password: "{{ vault_runner.bed_room_camera_pass | default('') }}"
271 path: "/stream1"
272 port: 554
273 onvif_port: 2020
274 enabled: true
275
276 - name: "alina-office"
277 host: "{{ vault_runner.alina_office_camera_host | default('') }}"
278 username: "{{ vault_runner.alina_office_camera_user | default('') }}"
279 password: "{{ vault_runner.alina_office_camera_pass | default('') }}"
280 path: "/stream1"
281 port: 554
282 onvif_port: 2020
283 enabled: true
284
285 - name: "street-cam"
286 host: "{{ vault_runner.street_cam_host | default('') }}"
287 username: "{{ vault_runner.street_cam_user | default('') }}"
288 password: "{{ vault_runner.street_cam_pass | default('') }}"
289 path: "/stream1"
290 port: 554
291 onvif_port: 2020
292 enabled: true
293
294 - name: "pi-cam"
295 host: "{{ vault_runner.pi_cam_host | default('') }}"
296 username: "{{ vault_runner.pi_cam_user | default('') }}"
297 password: "{{ vault_runner.pi_cam_pass | default('') }}"
298 path: "{{ vault_runner.pi_cam_path | default('/doorbell') }}"
299 port: 8554
300 enabled: true
301
302# Cameras with ONVIF support (for PTZ control)
303frigate_onvif_cameras:
304 - name: "dining-room"
305 host: "{{ vault_runner.dining_room_camera_host | default('') }}"
306 port: 2020
307 username: "{{ vault_runner.dining_room_camera_user | default('') }}"
308 password: "{{ vault_runner.dining_room_camera_pass | default('') }}"
309 - name: "living-room"
310 host: "{{ vault_runner.living_room_camera_host | default('') }}"
311 port: 2020
312 username: "{{ vault_runner.living_room_camera_user | default('') }}"
313 password: "{{ vault_runner.living_room_camera_pass | default('') }}"
314 - name: "bed-room"
315 host: "{{ vault_runner.bed_room_camera_host | default('') }}"
316 port: 2020
317 username: "{{ vault_runner.bed_room_camera_user | default('') }}"
318 password: "{{ vault_runner.bed_room_camera_pass | default('') }}"
319 - name: "alina-office"
320 host: "{{ vault_runner.alina_office_camera_host | default('') }}"
321 port: 2020
322 username: "{{ vault_runner.alina_office_camera_user | default('') }}"
323 password: "{{ vault_runner.alina_office_camera_pass | default('') }}"
324 - name: "street-cam"
325 host: "{{ vault_runner.street_cam_host | default('') }}"
326 port: 2020
327 username: "{{ vault_runner.street_cam_user | default('') }}"
328 password: "{{ vault_runner.street_cam_pass | default('') }}"
329
330# Cameras for snapshot capture
331frigate_snapshot_cameras:
332 - "living-room"
333 - "dining-room"
334 - "bed-room"
335 - "alina-office"
336 - "street-cam"
337 - "pi-cam"
338
339# Per-camera record override (cameras listed here have recording disabled)
340frigate_cameras_record_disabled:
341 - "bed-room"
342
343# Frigate profile system (home=record-only, away=full detection)
344frigate_profiles:
345 home:
346 detect_enabled: false
347 detectors_enabled: false
348 cameras:
349 - street-cam
350 - pi-cam
351 hwaccel_override_cameras:
352 - street-cam
353 - pi-cam
354 default_profile: false
355 away:
356 detect_enabled: true
357 detectors_enabled: true
358 cameras:
359 - living-room
360 - dining-room
361 - bed-room
362 - alina-office
363 - street-cam
364 - pi-cam
365 default_profile: true
366
367# Frigate manager service
368frigate_manager_enabled: true
369frigate_snapshot_interval_minutes: 30
370frigate_profile_switch_timeout: 120
371
372# Immich - Photo Management
373immich_enabled: true
374immich_server_port: 2283
375immich_ml_port: 3003
376immich_config_dir: "/docker/immich"
377immich_data_dir: "/docker/immich"
378immich_upload_dir: "{{ runner_nfs_mount_dir }}/immich/library"
379immich_db_name: "{{ vault_runner.postgres_db | default('') }}"
380immich_db_user: "{{ vault_runner.postgres_user | default('') }}"
381immich_redis_enabled: true
382immich_ml_enabled: true
383immich_facial_recognition: true
384immich_hardware_acceleration: "none" # none, vaapi, nvdec, nvenc, or qsv
385
386# External library mounts (read-only photo libraries from NFS)
387immich_external_libraries:
388 - name: "yannick"
389 host_path: "{{ runner_nfs_mount_dir }}/immich/yannick"
390 container_path: "/yannick"
391 - name: "alina"
392 host_path: "{{ runner_nfs_mount_dir }}/immich/alina"
393 container_path: "/alina"
394
395# Forgejo - Git Server
396forgejo_enabled: true
397forgejo_http_port: 3010
398forgejo_ssh_port: 2222
399forgejo_config_dir: "/docker/forgejo"
400forgejo_data_dir: "{{ runner_nfs_mount_dir }}/forgejo"
401forgejo_db_type: "sqlite3"
402forgejo_app_name: "Forgejo Git Service"
403forgejo_domain: "forgejo.home"
404forgejo_ssh_domain: "{{ ansible_default_ipv4.address }}"
405
406# Forgejo Runner Configuration
407forgejo_runner_enabled: true
408forgejo_runner_token: "{{ vault_runner.forgejo_runner_token | default('changeme') }}"
409forgejo_runner_name: "default-runner"
410forgejo_runner_capacity: 2
411forgejo_runner_loglevel: info
412forgejo_runner_base_image: ubuntu:22.04
413forgejo_runner_user: runner
414forgejo_runner_uid: 1000
415forgejo_runner_version: 9.1.1
416
417# Forgejo Ansible Runner (for running Ansible playbooks in CI)
418forgejo_ansible_runner_enabled: true
419forgejo_ansible_runner_token: "{{ vault_runner.forgejo_ansible_runner_token | default('changeme') }}"
420forgejo_ansible_runner_name: "ansible-runner"
421forgejo_ansible_runner_capacity: 1
422forgejo_ansible_runner_version: 9.1.1
423
424# Web Tools - PDF Processing, File Conversion, Data Analysis, Developer Utilities
425web_tools_enabled: true
426web_tools_config_dir: "/docker/web-tools"
427web_tools_data_dir: "/docker/web-tools"
428
429# Stirling-PDF
430web_tools_stirling_port: 8090
431web_tools_stirling_max_file_size: 100
432
433# ConvertX
434web_tools_convertx_port: 8091
435web_tools_convertx_jwt_secret: "{{ vault_runner.web_tools_convertx_jwt_secret | default('changeme-generate-a-real-secret') }}"
436web_tools_convertx_auto_delete_hours: 24
437
438# CyberChef
439web_tools_cyberchef_port: 8092
440
441# IT-Tools
442web_tools_it_tools_port: 8093
443
444# Tandoor - Recipe Manager
445tandoor_enabled: true
446tandoor_port: 8010
447tandoor_config_dir: "/docker/tandoor"
448tandoor_data_dir: "/docker/tandoor"
449tandoor_media_dir: "{{ tandoor_data_dir }}/media"
450tandoor_static_dir: "{{ tandoor_data_dir }}/static"
451tandoor_db_engine: "django.db.backends.postgresql"
452
453# Ghost CMS - Headless CMS
454ghost_enabled: true
455ghost_port: 2368
456ghost_config_dir: "/docker/ghost"
457ghost_data_dir: "/docker/ghost"
458ghost_content_dir: "{{ ghost_data_dir }}/content"
459ghost_db_client: "mysql"
460ghost_db_host: "ghost-mysql"
461ghost_db_name: "ghost"
462ghost_db_user: "ghost"
463ghost_url: "http://ghost.home"
464
465# ==============================================================================
466# LIVEKIT - WebRTC Conferencing (SFU) + Meet frontend
467# ==============================================================================
468# LiveKit is a WebRTC SFU. Unlike the other runner services it runs on
469# network_mode: host because Docker's userland proxy rewrites UDP source
470# addresses, which breaks ICE candidate resolution and silently kills media.
471livekit_enabled: true
472livekit_config_dir: "/docker/livekit"
473livekit_data_dir: "{{ livekit_config_dir }}/data"
474
475# Signaling / API (HTTP + WebSocket)
476livekit_port: 7880
477# WebRTC over TCP (ICE/TCP fallback for restrictive networks)
478livekit_tcp_port: 7881
479# WebRTC over UDP - single-port mux, avoids the 50000-60000 range entirely
480livekit_udp_port: 7882
481# Meet frontend (bridge network, normal published port)
482livekit_meet_port: 7883
483
484# Public hostnames handed to browser clients. When fronted by a reverse proxy
485# these are the proxy's names; otherwise they resolve straight to this host.
486livekit_domain: "livekit.home"
487livekit_sfu_domain: "{{ livekit_domain }}"
488
489# Set true when a reverse proxy terminates TLS in front of both hostnames.
490# Browsers require a secure context for getUserMedia, and a page served over
491# HTTPS may not open a ws:// socket, so this must be on for any non-localhost
492# browser access.
493livekit_tls_enabled: false
494
495# Behind a proxy the public URLs carry no port (443 is implied). Direct access
496# needs the explicit container ports.
497livekit_public_url: >-
498 {{ 'https://' ~ livekit_domain
499 if livekit_tls_enabled
500 else 'http://' ~ livekit_domain ~ ':' ~ livekit_meet_port }}
501livekit_public_ws_url: >-
502 {{ 'wss://' ~ livekit_sfu_domain
503 if livekit_tls_enabled
504 else 'ws://' ~ livekit_sfu_domain ~ ':' ~ livekit_port }}
505
506# API credentials (from vault). Generate with:
507# docker run --rm livekit/livekit-server generate-keys
508livekit_api_key: "{{ vault_runner.livekit_api_key | default('') }}"
509livekit_api_secret: "{{ vault_runner.livekit_api_secret | default('') }}"
510
511livekit_log_level: "info"
512
513# Avatar for the session agent, served by Meet at the site root so it can be
514# shown in place of a video tile (the agent publishes no camera).
515livekit_agent_avatar_enabled: true
516livekit_agent_avatar_filename: "thaumaturgeon.png"
517livekit_agent_avatar_src: "files/thaumaturgeon.png"
518
519# Room behaviour
520livekit_room_auto_create: true
521livekit_room_empty_timeout: 300 # seconds before an empty room closes
522livekit_room_departure_timeout: 20
523
524# Meet frontend build. Upstream publishes no release tags, so this is pinned to
525# a specific commit SHA rather than tracking the main branch. Bump deliberately.
526livekit_meet_repo_url: "https://github.com/livekit-examples/meet.git"
527livekit_meet_repo_version: "665e1cb7841ab872de0d8e5c310744009a763b08"
528# Matches the packageManager field in Meet's package.json
529livekit_meet_pnpm_version: "10.18.2"
530livekit_meet_node_version: "20-alpine"
531
532# Resource limits
533livekit_memory_limit: "2g"
534livekit_cpu_limit: "2"
535livekit_meet_memory_limit: "1g"
536livekit_meet_cpu_limit: "1"
537
538cvat_config_dir: "/docker/cvat"
539# CVAT - Data labeling
540cvat_enabled: true
541
542cvat_repo_url: "https://github.com/cvat-ai/cvat.git"
543cvat_repo_version: "{{ cvat_image_tag }}"
544
545cvat_admin_username: admin
546cvat_admin_password: "{{ vault_runner.cvat_admin_password | default('change-me') }}"
547cvat_admin_email: "{{ vault_runner.cvat_admin_email | default('change-me') }}"
548
549# Networking / access
550cvat_domain: "cvat.home" # used by Traefik routing in CVAT compose
551cvat_http_port: 8990 # Traefik "web" entrypoint in the default compose
552cvat_https_enabled: false # add CVAT's https overlay when true
553
554cvat_share_dir: >-
555 {{ (runner_nfs_mounts
556 | selectattr('name','equalto','cvat')
557 | map(attribute='local_path')
558 | first)
559 | default(runner_nfs_mount_dir ~ '/cvat', true) }}
560
561# Versioning / images
562cvat_image_tag: "v2.44.3" # pulled via CVAT_VERSION; align with the git tag you run
563
564# Optional: serverless auto-annotation overlay (Nuclio/SAM/YOLO assist in CVAT)
565cvat_serverless_enabled: false
566
567# Optional: use an external Postgres instead of the bundled one
568cvat_external_db_enabled: false
569cvat_db_host: "postgres.internal"
570cvat_db_port: 5432
571cvat_db_name: "cvat"
572cvat_db_user: "cvat_user"
573cvat_db_password: "{{ vault_runner.cvat_db_password | default('change-me') }}"
574
575# Optional: expose Traefik dashboard (binds host port below)
576cvat_traefik_dashboard_enabled: false
577cvat_dashboard_port: 8899
578
579# Optional: GPU reservation for CVAT server container (you must have host GPU runtime ready)
580cvat_gpu_enabled: false
581cvat_gpu_driver: "nvidia"
582cvat_gpu_count: "all" # or a number like "1"
583
584# ==============================================================================
585# DATABASE CONFIGURATIONS
586# ==============================================================================
587
588# PostgreSQL (Immich)
589postgres_enabled: "{{ immich_enabled }}"
590postgres_config_dir: "/docker/immich/postgres"
591postgres_db: "{{ vault_runner.postgres_db | default('') }}"
592postgres_user: "{{ vault_runner.postgres_user | default('') }}"
593postgres_version: "14"
594
595# Redis (Immich)
596redis_enabled: "{{ immich_redis_enabled }}"
597redis_config_dir: "/docker/immich/redis"
598redis_port: 6379
599
600# MySQL (Ghost CMS)
601mysql_enabled: "{{ ghost_enabled }}"
602mysql_config_dir: "/docker/ghost/mysql"
603mysql_db: "{{ ghost_db_name }}"
604mysql_user: "{{ ghost_db_user }}"
605mysql_version: "8.0"
606
607# ==============================================================================
608# SECURITY SETTINGS (FROM VAULT)
609# ==============================================================================
610
611# Database passwords
612postgres_password: "{{ vault_runner.postgres_password | default('') }}"
613mysql_password: "{{ vault_runner.mysql_password | default('') }}"
614mysql_root_password: "{{ vault_runner.mysql_root_password | default('') }}"
615
616# Service secrets
617immich_jwt_secret: "{{ vault_runner.immich_jwt_secret | default('') }}"
618ghost_database_password: "{{ vault_runner.ghost_database_password | default('') }}"
619tandoor_secret_key: "{{ vault_runner.tandoor_secret_key | default('') }}"
620
621# MQTT credentials (from vault - top-level, shared across all roles)
622mqtt_username: ""
623mqtt_password: ""
624
625# ==============================================================================
626# DIRECTORY STRUCTURE
627# ==============================================================================
628
629# Local configuration directories
630runner_config_directories:
631 - "{{ llm_stack_config_dir }}"
632 - "{{ llm_stack_ollama_data_dir }}"
633 - "{{ llm_stack_openwebui_data_dir }}"
634 - "{{ llm_stack_litellm_data_dir }}"
635 - "{{ frigate_config_dir }}"
636 - "{{ immich_config_dir }}"
637 - "{{ immich_config_dir }}/postgres"
638 - "{{ immich_config_dir }}/redis"
639 - "{{ immich_config_dir }}/library"
640 - "{{ immich_config_dir }}/cache"
641 - "{{ immich_config_dir }}/model-cache"
642 - "{{ immich_config_dir }}/postgres-init"
643 - "{{ forgejo_config_dir }}"
644 - "{{ forgejo_config_dir }}/forgejo-runner-data"
645 - "{{ forgejo_config_dir }}/forgejo-ansible-runner-data"
646 - "{{ web_tools_config_dir }}"
647 - "{{ tandoor_config_dir }}"
648 - "{{ tandoor_data_dir }}/db"
649 - "{{ tandoor_data_dir }}/media"
650 - "{{ tandoor_data_dir }}/static"
651 - "{{ ghost_config_dir }}/config"
652 - "{{ ghost_config_dir }}/content"
653 - "{{ ghost_config_dir }}/mysql"
654
655# NFS mount directories
656runner_nfs_directories:
657 - "{{ runner_nfs_mount_dir }}"
658 - "{{ runner_nfs_mount_dir }}/frigate"
659 - "{{ runner_nfs_mount_dir }}/immich"
660 - "{{ runner_nfs_mount_dir }}/forgejo"
661 - "{{ runner_nfs_mount_dir }}/harbor"
662 - "{{ runner_nfs_mount_dir }}/cvat"
663
664# ==============================================================================
665# PERFORMANCE SETTINGS
666# ==============================================================================
667
668# Network performance tuning for NFS
669runner_performance_tuning_enabled: true
670runner_sysctl_settings:
671 # Extreme performance network buffers for Ryzen 7 + 32GB RAM
672 net.core.rmem_max: 268435456 # 256MB socket receive buffer
673 net.core.wmem_max: 268435456 # 256MB socket send buffer
674 net.core.rmem_default: 33554432 # 32MB default receive buffer
675 net.core.wmem_default: 33554432 # 32MB default send buffer
676 net.ipv4.tcp_rmem: "4096 131072 268435456" # TCP receive: 4KB min, 128KB default, 256MB max
677 net.ipv4.tcp_wmem: "4096 131072 268435456" # TCP send: 4KB min, 128KB default, 256MB max
678 net.core.netdev_max_backlog: 30000 # Handle high connection burst (32 connections)
679 net.ipv4.tcp_congestion_control: "bbr" # BBR congestion control
680 net.ipv4.tcp_window_scaling: 1 # Enable TCP window scaling
681 net.ipv4.tcp_timestamps: 1 # Enable TCP timestamps for RTT calculation
682 net.ipv4.tcp_sack: 1 # Enable selective acknowledgments
683 # NFS client cache tuning for 32GB RAM
684 vm.dirty_background_ratio: 3 # Start writeback at 3% (more aggressive)
685 vm.dirty_ratio: 8 # Force writeback at 8% (more aggressive)
686 vm.vfs_cache_pressure: 25 # Keep even more file cache (25% vs 50%)
687 vm.min_free_kbytes: 131072 # Keep 128MB free for network buffers
688
689# Harbor Configuration (external deployment)
690harbor_enabled: true
691harbor_config_dir: "/docker/harbor"
692harbor_version: "2.13.2"
693harbor_hostname: "{{ vault_runner.harbor_hostname | default('registry.local') }}"
694harbor_http_port: 8080
695harbor_registry_port: 5000
696harbor_admin_password: "{{ vault_runner.harbor_admin_password | default('changeme') }}"
697harbor_db_password: "{{ vault_runner.harbor_db_password | default('changeme') }}"
698harbor_data_volume: "{{ runner_nfs_mount_dir }}/harbor"
699
700# Docker resource limits
701default_memory_limit: "1g"
702default_cpu_limit: "1"
703
704# Health check configuration
705health_check_interval: "30s"
706health_check_timeout: "30s"
707health_check_retries: 5
708health_check_start_period: "60s"
709
710# ==============================================================================
711# SERVICE HEALTH ENDPOINTS
712# ==============================================================================
713service_endpoints:
714 ollama: "http://localhost:{{ llm_stack_ollama_port }}/api/tags"
715 openwebui: "http://localhost:{{ llm_stack_openwebui_port }}/api/health"
716 litellm: "http://localhost:{{ llm_stack_litellm_port }}/"
717 frigate: "http://localhost:{{ frigate_port }}/api/config"
718 immich: "http://localhost:{{ immich_server_port }}/api/server-info/ping"
719 forgejo: "http://localhost:{{ forgejo_http_port }}/api/v1/version"
720 stirling_pdf: "http://localhost:{{ web_tools_stirling_port }}/api/v1/info/status"
721 convertx: "http://localhost:{{ web_tools_convertx_port }}/"
722 cyberchef: "http://localhost:{{ web_tools_cyberchef_port }}/"
723 it_tools: "http://localhost:{{ web_tools_it_tools_port }}/"
724 tandoor: "http://localhost:{{ tandoor_port }}/accounts/login/"
725 ghost: "http://localhost:{{ ghost_port }}/ghost/api/admin/site/"
726 livekit: "http://localhost:{{ livekit_port }}/"
727 livekit_meet: "http://localhost:{{ livekit_meet_port }}/"
728
729# ==============================================================================
730# LOGGING CONFIGURATION
731# ==============================================================================
732logging_driver: "json-file"
733logging_max_size: "10m"
734logging_max_file: "3"
735
736# Service-specific logging levels (unified LLM stack uses llm_stack_* variables)
737# ollama_log_level: "info" # Now uses llm_stack_ollama_log_level
738# openwebui_log_level: "info" # Now uses llm_stack_openwebui_log_level
739# litellm_log_level: "info" # Now uses llm_stack_litellm_log_level
740frigate_log_level: "info"
741immich_log_level: "log"
742forgejo_log_level: "Info"
743ghost_logging: "info"
744
745