Files
computer-playbook/inventory.sample.yml
T
kevinveenbirkenbach d9ef2cd500 ci: keep docker logs for health checks and add unhealthy container diagnostics
- Hard-disable logout, desktop and matomo services in CI inventory to keep containers slim
- Stop truncating docker json logs during docker-compose cleanup
- Extend docker container health check to:
  - Print last 200 log lines for unhealthy containers
  - Print last 200 log lines for exited containers with non-zero exit codes
  - Emit a final summary of all unhealthy/failed containers
  - Use severity-based exit codes (1 = unhealthy, 2 = exited)
- Fix missing newline in sys-ctl-hlth-docker-container task file

https://chatgpt.com/share/6968d0d3-23c0-800f-93be-564338d1d867
2026-01-15 12:34:35 +01:00

109 lines
2.8 KiB
YAML

# Sample inventory for CI Pipeline
MASK_CREDENTIALS_IN_LOGS: false
MODE_TEST: true
OIDC:
CLIENT:
SECRET: VERYUNSAFESAMPLEPASSWORD1234
users:
administrator:
authorized_keys:
- ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito
biber:
username: "biber"
full_name: "Harry Beaver"
website: https://www.infinito.nexus/
email: contact@infinito.nexus
gpg: "DUMMY-GPG-KEY-NOT-SET"
password: "VerySecurePassword!"
# UID/GID allocation policy:
# - Use IDs >= 10000 for manually managed users
# - IDs below 10000 are reserved for auto-created Infinito.Nexus service accounts
# This avoids collisions with system users and managed application accounts.
uid: 10001
gid: 10001
roles: []
tokens: {}
authorized_keys: []
applications:
svc-ai-ollama:
# Disabled for test because they are to huge for github actions test
preload_models: []
web-app-jira:
server:
status_codes:
default: 302
web-app-flowise:
docker:
services:
# Deactivated the following services for the CI/CD deploy to keep the container slim
logout:
enabled: false
desktop:
enabled: false
matomo:
enabled: false
shared: false
SIZE_PERCENT_CLEANUP_DISC_SPACE: 99 # Set high because in DiD Ci Environment in github workflow it can be verry high e.g. ~92%
WORKSTATION_USER: biber
ansible_python_interpreter: /usr/bin/python3
# Uncomment the following lines to speed up debugging:
# SYS_SERVICE_SUPPRESS_FLUSH:
# - sys-ctl-rpr-btrfs-balancer
# - sys-ctl-hlth-journalctl
# - sys-ctl-bkp-docker-2-loc
# - sys-ctl-cln-faild-bkps
# - sys-ctl-cln-disc-space
# - sys-ctl-rpr-docker-hard
# - sys-ctl-rpr-docker-soft
# # Performance:
# run_once_docker_compose: true
# run_once_svc_prx_openresty: true
# run_once_sys_svc_webserver: true
# # Services
# ## Alarm
# run_once_sys_ctl_alm_compose: true
# ## Backup
# run_once_sys_ctl_bkp_docker_2_loc: true
# ## Cleanup
# run_once_sys_ctl_cln_faild_bkps: true
# run_once_sys_ctl_cln_disc_space: true
# run_once_sys_ctl_cln_anon_volumes: true
# ## Repair
# run_once_sys_ctl_rpr_docker_hard: true
# run_once_sys_ctl_rpr_docker_soft: true
# run_once_sys_ctl_rpr_btrfs_balancer: true
# ## Health
# run_once_sys_ctl_hlth_msmtp: true
# run_once_sys_ctl_hlth_journalctl: true
# run_once_sys_ctl_hlth_docker_container: true
# run_once_sys_ctl_hlth_webserver: true
# run_once_sys_ctl_hlth_csp: true
# run_once_sys_ctl_hlth_disc_space: true
# ## Maintain
# run_once_sys_ctl_mtn_cert_renew: true
# ## Backend
# run_once_sys_svc_docker: true
# run_once_svc_db_mariadb: true
# # Front
# run_once_sys_svc_dns: true
# run_once_web_svc_cdn: true
# run_once_web_svc_logout: true