Wire Beszel fleet filesystems, GPU telemetry, dashboard and alerts
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
steps:
|
||||
- name: Back up agent environment before filesystem wiring
|
||||
sudo: true
|
||||
shell: cp -p {{ stack_dir }}/.env {{ stack_dir }}/.env.before-fleet-wiring-20260910
|
||||
creates: '{{ stack_dir }}/.env.before-fleet-wiring-20260910'
|
||||
- name: Select canonical host filesystem override
|
||||
sudo: true
|
||||
shell: |
|
||||
set -euo pipefail
|
||||
cd {{ stack_dir }}
|
||||
sed -i '/^COMPOSE_FILE=/d; /^BESZEL_EXTRA_FS=/d' .env
|
||||
printf '\nCOMPOSE_FILE=compose.yaml:hosts/{{ host_name }}.yaml\nBESZEL_EXTRA_FS={{ extra_fs }}\n' >> .env
|
||||
docker compose config --quiet
|
||||
docker compose up -d --pull never beszel-agent
|
||||
verify:
|
||||
- name: Verify running mounts and process health
|
||||
sudo: true
|
||||
shell: |
|
||||
docker inspect beszel-agent --format '{{json .Mounts}}'
|
||||
docker inspect beszel-agent | python3 -c 'import json,sys; print([e for e in json.load(sys.stdin)[0]["Config"]["Env"] if e.startswith("EXTRA_FILESYSTEMS=")])'
|
||||
docker exec beszel-agent /agent health
|
||||
changed_when: 'false'
|
||||
Reference in New Issue
Block a user