Konflikte geloest: open_webui uebernimmt die origin-Branding-Struktur (files/theme + files/favicon, open_webui_theme_dir/favicon_mounts), meine Deep-Research-Pipe/-Tasks und der /app/build/favicon.png-Mount bleiben erhalten; files/branding-Duplikate entfernt. Link-Check OK (292 Links), beide Playbooks syntax-ok. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@@ -204,11 +204,15 @@ The dedicated verification playbook uses `gnai-testing` and an immutable amd64
|
||||
manifest of the official `llama.cpp` ROCm image:
|
||||
|
||||
```text
|
||||
version: b11058
|
||||
revision: f072b103714dfa1eee531f80b24512faf38e3dd2
|
||||
digest: sha256:b429b8be10d3d0353a09c98f4ab840fe516f779858a28f9fd4e5bdf10bc63cb4
|
||||
version: v1.0.0-b12359-b1b770d # OCI label; release tag v1.0.0 (2026-11-13), build b12359
|
||||
revision: b1b770d90d94cad9e9ea5b993bdbc383a522fb28
|
||||
digest: sha256:4bbbd2e33deb54330fd23edde3a2cdf12b05ce4415139c7e8639a9aebbacdcf2
|
||||
```
|
||||
|
||||
Updated 2026-11-14 from the previous pin `b11058` / `f072b103…` /
|
||||
`sha256:b429b8be…` to the v1.0.0 stable tag (`server-rocm-v1.0.0-b12359-b1b770d`,
|
||||
amd64 manifest `sha256:abb28972…`).
|
||||
|
||||
It passes `/dev/kfd` and both discovered render nodes with
|
||||
`--group-add=keep-groups`. `rocminfo` must report exactly two `gfx1030` agents,
|
||||
and `llama-server --list-devices` must expose exactly two ROCm devices. No
|
||||
|
||||
@@ -4,9 +4,11 @@ rocm_probe_account:
|
||||
uid: 981
|
||||
home: /var/lib/ghostnet-ai/testing
|
||||
|
||||
# 2026-11-14: pin moved to the v1.0.0 stable tag (build b12359, commit
|
||||
# b1b770d90); OCI label version of that image is v1.0.0-b12359-b1b770d.
|
||||
rocm_probe_image: >-
|
||||
ghcr.io/ggml-org/llama.cpp@sha256:b429b8be10d3d0353a09c98f4ab840fe516f779858a28f9fd4e5bdf10bc63cb4
|
||||
rocm_probe_expected_image_revision: f072b103714dfa1eee531f80b24512faf38e3dd2
|
||||
rocm_probe_expected_image_version: b11058
|
||||
ghcr.io/ggml-org/llama.cpp@sha256:4bbbd2e33deb54330fd23edde3a2cdf12b05ce4415139c7e8639a9aebbacdcf2
|
||||
rocm_probe_expected_image_revision: b1b770d90d94cad9e9ea5b993bdbc383a522fb28
|
||||
rocm_probe_expected_image_version: v1.0.0-b12359-b1b770d
|
||||
rocm_probe_expected_architecture: gfx1030
|
||||
rocm_probe_expected_device_count: 2
|
||||
|
||||
@@ -8,9 +8,17 @@ share (`pve:/media/datenhdd3/Encoding`, operator decision 06.11.2026).
|
||||
## Backup scope
|
||||
|
||||
- `/etc/ghostnet-ai` (all environment config trees)
|
||||
- `/etc/gnmon` (dashboard OIDC env file `dashboard-secrets.env`; added
|
||||
14.11.2026, GNAI-021 follow-up)
|
||||
- `/etc/containers/systemd/users/{980,981,984}` (rootless quadlets,
|
||||
included when present)
|
||||
- `/var/lib/ghostnet-ai/environment-state` (switch state)
|
||||
- `/var/lib/ghostnet-ai/production/openwebui-data` (OpenWebUI app + user
|
||||
data: uploads, cache; added 14.11.2026, GNAI-021 follow-up). The live
|
||||
`webui.db`/`-wal`/`-shm` are **excluded** from the tar; instead a
|
||||
consistent snapshot via SQLite's online-backup API (python3 stdlib) is
|
||||
appended at the same archive path, so a mid-write WAL state is never
|
||||
archived.
|
||||
- `/var/lib/ghostnet-ai/testing/bench/results` (benchmark artifacts)
|
||||
- `/var/lib/ghostnet-ai/shared/models` **without `*.gguf`** — the pinned
|
||||
`SOURCE.yml` manifests make the weights reproducible through the
|
||||
@@ -53,7 +61,13 @@ before it replaces the last good file; retention keeps the newest
|
||||
runtime converges with the restored state.
|
||||
6. For model weights: restore via the model_store role
|
||||
(`--tags models`), then verify the `SOURCE.yml` checksums.
|
||||
7. Re-run the affected environment playbook
|
||||
7. For OpenWebUI user data (`var/lib/ghostnet-ai/production/openwebui-data`):
|
||||
stop the unit (`runuser -u gnai-production -- systemctl --user stop
|
||||
gnai-production-openwebui`), copy the archived `webui.db` back,
|
||||
`chown -R gnai-production:gn-production` the data dir, start the unit,
|
||||
then re-run `playbooks/webui.yml` (re-applies model/tool/config sync)
|
||||
and verify `/health` + model list.
|
||||
8. Re-run the affected environment playbook
|
||||
(`playbooks/ai.yml --tags service`) and verify health.
|
||||
|
||||
Accepted proof (06.11.2026): full-tree extract-and-diff against the
|
||||
|
||||
@@ -25,12 +25,22 @@ ai_backup_script: /usr/local/sbin/gnai-ai-backup
|
||||
# the script only when they exist.
|
||||
ai_backup_paths:
|
||||
- etc/ghostnet-ai
|
||||
- etc/gnmon
|
||||
- etc/containers/systemd/users/980
|
||||
- etc/containers/systemd/users/981
|
||||
- etc/containers/systemd/users/984
|
||||
- var/lib/ghostnet-ai/environment-state
|
||||
- var/lib/ghostnet-ai/production/openwebui-data
|
||||
- var/lib/ghostnet-ai/testing/bench/results
|
||||
|
||||
# OpenWebUI app data (GNAI-021 follow-up, 14.11.2026): the live SQLite
|
||||
# webui.db (and its -wal/-shm sidecars) is EXCLUDED from the tar and replaced
|
||||
# by a consistent snapshot taken via SQLite's online-backup API (python3
|
||||
# stdlib), so a mid-write WAL state is never archived. The snapshot lands at
|
||||
# the same path inside the archive as the live db.
|
||||
ai_backup_openwebui_data_dir: var/lib/ghostnet-ai/production/openwebui-data
|
||||
ai_backup_openwebui_db: webui.db
|
||||
|
||||
# Included without its multi-gigabyte weights: model manifests and any
|
||||
# other metadata below the shared model store.
|
||||
ai_backup_model_store_meta: var/lib/ghostnet-ai/shared/models
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
- ai_backup_paths | length > 0
|
||||
- ai_backup_service | length > 0
|
||||
- ai_backup_script is match("^/usr/local/sbin/")
|
||||
- ai_backup_openwebui_data_dir is match("^var/lib/")
|
||||
- ai_backup_openwebui_db is match("^[a-z0-9_.-]+$")
|
||||
fail_msg: AI backup declarations are incomplete or invalid.
|
||||
|
||||
- name: Require the NFS pipeline share to be mounted
|
||||
|
||||
@@ -39,8 +39,40 @@ mkdir -p "$TARGET_DIR"
|
||||
STAMP=$(date +%Y%m%d-%H%M)
|
||||
ARCHIVE="$TARGET_DIR/ghostnet-ai-backup-$STAMP.tar.gz"
|
||||
TMP="$ARCHIVE.tmp"
|
||||
RAWTMP="$ARCHIVE.raw"
|
||||
|
||||
tar -C / -czf "$TMP" "${paths[@]}"
|
||||
# Consistent snapshot of the live OpenWebUI SQLite DB via the online-backup
|
||||
# API (python3 stdlib; sqlite3 CLI is not installed on the host). The live
|
||||
# db + wal/shm are excluded from the archive and the snapshot is appended at
|
||||
# the same archive path.
|
||||
DATA_REL="{{ ai_backup_openwebui_data_dir }}"
|
||||
DB_REL="$DATA_REL/{{ ai_backup_openwebui_db }}"
|
||||
STAGE=""
|
||||
if [ -f "/$DB_REL" ]; then
|
||||
STAGE=$(mktemp -d /tmp/gnai-ai-backup-stage.XXXXXX)
|
||||
mkdir -p "$STAGE/$DATA_REL"
|
||||
python3 - "/$DB_REL" "$STAGE/$DB_REL" <<'PY'
|
||||
import sqlite3, sys
|
||||
src = sqlite3.connect(f"file:{sys.argv[1]}?mode=ro", uri=True)
|
||||
dst = sqlite3.connect(sys.argv[2])
|
||||
with dst:
|
||||
src.backup(dst)
|
||||
dst.close()
|
||||
src.close()
|
||||
PY
|
||||
fi
|
||||
trap 'rm -rf "$STAGE" "$RAWTMP"' EXIT
|
||||
|
||||
# Build uncompressed first so the staged DB can be appended (tar -r does not
|
||||
# work on compressed archives), then gzip.
|
||||
tar -C / -cf "$RAWTMP" \
|
||||
--exclude="$DB_REL" --exclude="$DB_REL-wal" --exclude="$DB_REL-shm" \
|
||||
"${paths[@]}"
|
||||
if [ -n "$STAGE" ]; then
|
||||
tar -C "$STAGE" -rf "$RAWTMP" "$DB_REL"
|
||||
fi
|
||||
gzip -c "$RAWTMP" > "$TMP"
|
||||
rm -f "$RAWTMP"
|
||||
|
||||
if ! tar -tzf "$TMP" > /dev/null 2>&1; then
|
||||
log "ERROR: archive failed the integrity check" >&2
|
||||
|
||||
@@ -4,10 +4,16 @@
|
||||
# Experimental candidate and is intentionally not modelled here yet.
|
||||
#
|
||||
# Container image: immutable digest, never a moving tag (GNAI-010 section 3.1).
|
||||
inference_engine_image: ghcr.io/ggml-org/llama.cpp:server-rocm
|
||||
inference_engine_image_ref: ghcr.io/ggml-org/llama.cpp@sha256:b429b8be10d3d0353a09c98f4ab840fe516f779858a28f9fd4e5bdf10bc63cb4
|
||||
inference_engine_image_build: "b11058"
|
||||
inference_engine_image_revision: f072b103714dfa1eee531f80b24512faf38e3dd2
|
||||
# 2026-11-14: pin moved to the v1.0.0 stable tag (released 2026-11-13), resolved
|
||||
# via the release asset nightly-tag.txt to build b12359; the moving tag
|
||||
# `server-rocm` already points at the same digest. All Exec flags of the quadlet
|
||||
# were verified against `llama-server --help` of b12359 — the only removed flag
|
||||
# is --defrag-thold (unused here). OCI labels: version v1.0.0-b12359-b1b770d,
|
||||
# revision b1b770d90d94cad9e9ea5b993bdbc383a522fb28.
|
||||
inference_engine_image: ghcr.io/ggml-org/llama.cpp:server-rocm-v1.0.0-b12359-b1b770d
|
||||
inference_engine_image_ref: ghcr.io/ggml-org/llama.cpp@sha256:4bbbd2e33deb54330fd23edde3a2cdf12b05ce4415139c7e8639a9aebbacdcf2
|
||||
inference_engine_image_build: "b12359"
|
||||
inference_engine_image_revision: b1b770d90d94cad9e9ea5b993bdbc383a522fb28
|
||||
|
||||
# Environment identity (overridden per inventory, GNAI-008 section 7.4).
|
||||
inference_engine_user: gnai-testing
|
||||
|
||||
@@ -67,3 +67,40 @@ wird nach `open_webui_branding_dir` deployt und per read-only Mounts in
|
||||
`/app/backend/open_webui/static/` des Image gemountet — update-persistent,
|
||||
da OpenWebUIs Start-Wipe von `static/` ro-Mounts nicht anfassen kann.
|
||||
Datei-Ersetzen erzeugt einen neuen Inode, daher notify Restart.
|
||||
## Theme (GNAI-021): GNMON Catppuccin Mocha als Default
|
||||
|
||||
- `files/theme/gnai-catppuccin-mocha.css` wird nach
|
||||
`/var/lib/ghostnet-ai/production/openwebui-theme/custom.css` deployt und im
|
||||
Quadlet **read-only** über `/app/backend/open_webui/static/custom.css`
|
||||
gemountet (`Volume=...:ro`).
|
||||
- `index.html` lädt `/static/custom.css` auf jeder Seite — update-sicher: Beim
|
||||
Container-Start kopiert OpenWebUI zwar `static/` neu (`config.py`), aber
|
||||
eine read-only Einzeldatei kann weder unlinkt noch überschrieben werden;
|
||||
der Mount liegt host-seitig im Quadlet, die Datei kommt aus Git. Image-Updates
|
||||
(neuer Digest) ändern daran nichts.
|
||||
- Default für alle Nutzer: OpenWebUI speichert die Theme-Wahl (light/dark) nur
|
||||
pro Browser in `localStorage` — es gibt keinen server-seitigen Default. Das
|
||||
CSS bildet daher `html.light` UND `html.dark` auf dieselbe Mocha-Palette ab
|
||||
(`!important` gegen die Inline-Styles von `setTheme()`), sodass das
|
||||
GNMON-Theme unabhängig von der UI-Auswahl immer greift.
|
||||
- Verifikation: Task `Verify the GNMON theme is served as /static/custom.css`
|
||||
prüft nach dem Health-Check, dass die Datei non-empty mit Marker ausgeliefert
|
||||
wird.
|
||||
|
||||
## Favicon (GNAI-021): ursprünglicher Geist (wie Monitoring-Website)
|
||||
|
||||
- `files/favicon/` (favicon.png 32px und apple-touch-icon.png 180px
|
||||
byte-identisch zum Dashboard-Original, dazu favicon-96x96.png, favicon.ico,
|
||||
favicon.svg als Ableitungen) wird nach
|
||||
`/var/lib/ghostnet-ai/production/openwebui-favicon/` deployt und im Quadlet
|
||||
**read-only** über die entsprechenden Dateien in
|
||||
`/app/backend/open_webui/static/` gemountet (app.html referenziert alle fünf).
|
||||
- Update-persistent wie das Theme: Mount host-seitig im Quadlet, Datei aus Git;
|
||||
OpenWebUIs Start-Kopie von `static/` kann eine ro-Einzeldatei nicht anfassen.
|
||||
- Achtung Inode: Single-File-Bind-Mounts binden den Inode bei der
|
||||
Container-Erzeugung; Ansible `copy` ersetzt die Datei (Rename → neuer Inode).
|
||||
Inhaltsänderungen notifies deshalb `Restart OpenWebUI unit`, und
|
||||
`flush_handlers` läuft vor den Served-Checks, damit die geprüft wird, was
|
||||
der Neustart neu gebunden hat.
|
||||
- Verifikation: `GET /static/favicon.png` muss byte-identisch zur deployen Datei
|
||||
sein (content_length vs. stat).
|
||||
|
||||
@@ -74,22 +74,41 @@ open_webui_host_addr: 10.0.0.90
|
||||
open_webui_host_port: 8081
|
||||
open_webui_container_port: 8080
|
||||
|
||||
# Branding (GNAI-021): Geist-Favicons + Theme custom.css ("gnai-catppuccin-
|
||||
# mocha"), update-persistent via read-only mounts into the image's static
|
||||
# dir. The files live in files/branding/ (favicon.png is byte-identical to
|
||||
# the monitoring dashboard's original ghost, md5 789667887d0f5f704213222bfe61ad52).
|
||||
open_webui_branding_dir: /var/lib/ghostnet-ai/production/openwebui-branding
|
||||
open_webui_branding_files:
|
||||
- favicon.png
|
||||
- favicon.svg
|
||||
- favicon.ico
|
||||
- favicon-96x96.png
|
||||
- apple-touch-icon.png
|
||||
- custom.css
|
||||
|
||||
# Persistent app data (SQLite DB, uploads, cache).
|
||||
open_webui_data_dir: /var/lib/ghostnet-ai/production/openwebui-data
|
||||
|
||||
# GNMON theme (GNAI-021): Catppuccin Mocha wie das Monitoring-Dashboard.
|
||||
# Wird als einzelne read-only-Datei über den Image-Placeholder
|
||||
# /app/backend/open_webui/static/custom.css gemountet (index.html lädt
|
||||
# /static/custom.css auf jeder Seite). Beim Container-Start kopiert OpenWebUI
|
||||
# sein static/-Verzeichnis zwar neu (config.py), aber eine read-only
|
||||
# Einzeldatei kann weder unlinkt noch überschrieben werden — die Fehler werden
|
||||
# upstream ge-swallowt. Das Theme überlebt Image-Updates, weil der Mount
|
||||
# host-seitig im Quadlet liegt und die Datei aus diesem Repo kommt.
|
||||
open_webui_theme_dir: /var/lib/ghostnet-ai/production/openwebui-theme
|
||||
open_webui_theme_src: theme/gnai-catppuccin-mocha.css
|
||||
open_webui_theme_file: custom.css
|
||||
open_webui_theme_container_path: /app/backend/open_webui/static/custom.css
|
||||
|
||||
# Favicon (GNAI-021): the ORIGINAL ghost favicon of the monitoring site
|
||||
# (byte-identical PNGs from src/Ghostnet.Dashboard/wwwroot/), same
|
||||
# update-persistent mechanism as the theme: read-only single-file mounts over
|
||||
# the image's /app/backend/open_webui/static/* favicon files (app.html
|
||||
# references all of them). Badge variants were tried and rejected by the
|
||||
# operator 2026-11-14 — both sites use the plain ghost.
|
||||
open_webui_favicon_dir: /var/lib/ghostnet-ai/production/openwebui-favicon
|
||||
open_webui_favicon_mounts:
|
||||
- host_file: favicon.png
|
||||
container_path: /app/backend/open_webui/static/favicon.png
|
||||
- host_file: favicon-96x96.png
|
||||
container_path: /app/backend/open_webui/static/favicon-96x96.png
|
||||
- host_file: favicon.svg
|
||||
container_path: /app/backend/open_webui/static/favicon.svg
|
||||
- host_file: favicon.ico
|
||||
container_path: /app/backend/open_webui/static/favicon.ico
|
||||
- host_file: apple-touch-icon.png
|
||||
container_path: /app/backend/open_webui/static/apple-touch-icon.png
|
||||
|
||||
# OIDC phase (M6 public route via NPM + Keycloak). Disabled for the
|
||||
# internal phase; enable together with the Keycloak client
|
||||
# `gnai-openwebui` and the NPM proxy host chat.ghostnet.selfhost.eu.
|
||||
|
||||
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
@@ -52,6 +52,45 @@
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0750"
|
||||
|
||||
- name: Ensure the OpenWebUI theme directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ open_webui_theme_dir }}"
|
||||
state: directory
|
||||
owner: "{{ open_webui_user }}"
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0750"
|
||||
|
||||
- name: Deploy the GNMON theme as custom.css (read-only mount target, survives image updates)
|
||||
# Single-file bind mounts pin the inode at container creation; Ansible copy
|
||||
# replaces the file (rename -> new inode), so a content change MUST restart
|
||||
# the unit to re-bind the current file. Hence the notify.
|
||||
ansible.builtin.copy:
|
||||
src: "files/{{ open_webui_theme_src }}"
|
||||
dest: "{{ open_webui_theme_dir }}/{{ open_webui_theme_file }}"
|
||||
owner: "{{ open_webui_user }}"
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0644"
|
||||
notify: Restart OpenWebUI unit
|
||||
|
||||
- name: Ensure the OpenWebUI favicon directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ open_webui_favicon_dir }}"
|
||||
state: directory
|
||||
owner: "{{ open_webui_user }}"
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0750"
|
||||
|
||||
- name: Deploy the ghost favicon files (read-only mount targets, survive image updates)
|
||||
# Same inode caveat as the theme: content changes notify a unit restart.
|
||||
ansible.builtin.copy:
|
||||
src: "files/favicon/{{ item.host_file }}"
|
||||
dest: "{{ open_webui_favicon_dir }}/{{ item.host_file }}"
|
||||
owner: "{{ open_webui_user }}"
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0644"
|
||||
loop: "{{ open_webui_favicon_mounts }}"
|
||||
notify: Restart OpenWebUI unit
|
||||
|
||||
- name: Check whether the WebUI secret key already exists
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
@@ -452,29 +491,6 @@
|
||||
failed_when: >-
|
||||
open_webui_pipe_hash.stdout.split()[0] != open_webui_deep_research_pipe_sha256
|
||||
|
||||
- name: Ensure the branding directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ open_webui_branding_dir }}"
|
||||
state: directory
|
||||
owner: "{{ open_webui_user }}"
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0750"
|
||||
|
||||
- name: Deploy the branding files (favicons + custom.css theme, GNAI-021)
|
||||
# Read-only mounted into the image's static dir by the quadlet below.
|
||||
# File replaces create a new inode, so a restart is required for the
|
||||
# running container to pick up new content (GNAI-021 Inode-Befund).
|
||||
ansible.builtin.copy:
|
||||
src: "files/branding/{{ item }}"
|
||||
dest: "{{ open_webui_branding_dir }}/{{ item }}"
|
||||
owner: "{{ open_webui_user }}"
|
||||
group: "{{ open_webui_user }}"
|
||||
mode: "0644"
|
||||
loop: "{{ open_webui_branding_files }}"
|
||||
notify:
|
||||
- Reload workload user manager
|
||||
- Restart OpenWebUI unit
|
||||
|
||||
- name: Ensure the deep-research pipe exists, is active and publicly readable in OpenWebUI
|
||||
# Pipe functions (type='pipe') appear in the model selector with
|
||||
# id=function.id; non-admin users only see them when a row in the `model`
|
||||
@@ -589,6 +605,11 @@
|
||||
path: /tmp/gnai-deep-research-pipe.py
|
||||
state: absent
|
||||
changed_when: false
|
||||
- name: Flush handlers before the served checks
|
||||
# Content changes to the ro-mounted files notify "Restart OpenWebUI unit";
|
||||
# the restart must happen BEFORE the served checks, otherwise they test the
|
||||
# stale inode still bound by the running container.
|
||||
ansible.builtin.meta: flush_handlers
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Wait for the OpenWebUI health endpoint
|
||||
@@ -602,6 +623,36 @@
|
||||
until: open_webui_health.status == 200
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Verify the GNMON theme is served as /static/custom.css (non-empty, marker present)
|
||||
# Guards the update-persistence contract: if a future OpenWebUI image stops
|
||||
# referencing or serving custom.css, this fails instead of silently losing
|
||||
# the theme.
|
||||
ansible.builtin.uri:
|
||||
url: "http://{{ open_webui_host_addr }}:{{ open_webui_host_port }}/static/custom.css"
|
||||
status_code: 200
|
||||
timeout: 10
|
||||
return_content: true
|
||||
register: open_webui_theme_served
|
||||
failed_when: "'gnai-catppuccin-mocha' not in open_webui_theme_served.content"
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Stat the deployed favicon for the served-size comparison
|
||||
ansible.builtin.stat:
|
||||
path: "{{ open_webui_favicon_dir }}/favicon.png"
|
||||
register: open_webui_favicon_stat
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Verify the ghost favicon is served as /static/favicon.png (byte-identical to the deployed file)
|
||||
ansible.builtin.uri:
|
||||
url: "http://{{ open_webui_host_addr }}:{{ open_webui_host_port }}/static/favicon.png"
|
||||
status_code: 200
|
||||
timeout: 10
|
||||
register: open_webui_favicon_served
|
||||
failed_when: >-
|
||||
open_webui_favicon_served.content_length | int
|
||||
!= open_webui_favicon_stat.stat.size | int
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Verify the engine model list is reachable through OpenWebUI's network
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
|
||||
@@ -11,14 +11,19 @@ Network={{ open_webui_network_name }}
|
||||
Network={{ open_webui_egress_network_name }}
|
||||
PublishPort={{ open_webui_host_addr }}:{{ open_webui_host_port }}:{{ open_webui_container_port }}
|
||||
Volume={{ open_webui_data_dir }}:/app/backend/data:rw
|
||||
# Branding: read-only file mounts into the image's static dir; OpenWebUI's
|
||||
# start-wipe of static/ cannot touch ro mounts (GNAI-021).
|
||||
{% for f in open_webui_branding_files %}
|
||||
Volume={{ open_webui_branding_dir }}/{{ f }}:/app/backend/open_webui/static/{{ f }}:ro
|
||||
# GNMON theme (GNAI-021): read-only single-file mount over the image's empty
|
||||
# custom.css placeholder. Survives image updates — the mount lives host-side
|
||||
# in this quadlet, and OpenWebUI's startup static re-copy cannot unlink or
|
||||
# overwrite a read-only bind-mounted file.
|
||||
Volume={{ open_webui_theme_dir }}/{{ open_webui_theme_file }}:{{ open_webui_theme_container_path }}:ro
|
||||
# Favicon (GNAI-021): original ghost, same read-only single-file mount pattern
|
||||
# over the image's static favicon files (app.html references all of them).
|
||||
{% for m in open_webui_favicon_mounts %}
|
||||
Volume={{ open_webui_favicon_dir }}/{{ m.host_file }}:{{ m.container_path }}:ro
|
||||
{% endfor %}
|
||||
# v0.13.3 serves the root route /favicon.png from the frontend build dir,
|
||||
# while index.html links /static/favicon.png (backend static, mounted above).
|
||||
Volume={{ open_webui_branding_dir }}/favicon.png:/app/build/favicon.png:ro
|
||||
# v0.13.3 root route /favicon.png is served from the frontend build dir
|
||||
# (index.html links /static/* from the backend static mounted above).
|
||||
Volume={{ open_webui_favicon_dir }}/favicon.png:/app/build/favicon.png:ro
|
||||
# Secrets are injected as environment variables, never written to disk or git.
|
||||
Secret={{ open_webui_webui_secret_key_secret }},type=env,target=WEBUI_SECRET_KEY
|
||||
Secret={{ open_webui_engine_api_key_secret }},type=env,target=OPENAI_API_KEY
|
||||
|
||||