Commit Graph
3774 Commits
Author SHA1 Message Date
kevinveenbirkenbach a1a266ba57 web-app-snipe-it: make APP_FORCE_TLS depend on global TLS flag
- Bind APP_FORCE_TLS to TLS_ENABLED instead of forcing it unconditionally
- Align Snipe-IT TLS behavior with reverse proxy and global TLS configuration
- Fix missing newline at end of vars file

https://chatgpt.com/share/696890d1-0954-800f-8ad7-887562c620d3
2026-01-15 08:03:55 +01:00
kevinveenbirkenbach f9679ce045 web-app-snipe-it: wait for DB migrations before applying LDAP settings
- Add DB readiness guard to ensure `settings` table exists before LDAP configuration
- Move OAuth2 and LDAP feature flags into vars for consistent gating
- Use boolean flags for clearer task conditions
- Prevent race condition during initial Snipe-IT installation

https://chatgpt.com/share/696890d1-0954-800f-8ad7-887562c620d3
2026-01-15 08:01:29 +01:00
kevinveenbirkenbach 901b2cf11c web-app-mediawiki: run update as task after extensions (avoid early handler race)
- Remove early flush/notify logic from install step
- Stop triggering mediawiki update via handlers during extension setup
- Move mediawiki update logic from handler to tasks/03_update.yml
- Run update only when config/extensions/composer actually changed
- Rename admin task to keep ordered task flow (04_admin.yml)

https://chatgpt.com/share/69688a99-e940-800f-a961-96474fff8160
2026-01-15 07:34:55 +01:00
kevinveenbirkenbach ab8068ed58 web-app-discourse: skip launcher prereqs in Docker-in-Docker environments
- Remove obsolete Administration.md and Debug.md documentation
- Allow Discourse launcher rebuild to bypass storage driver checks
  when running inside Docker-in-Docker (CI environments)
- Keep safety checks enabled on real hosts
- Normalize handler formatting and whitespace

https://chatgpt.com/share/69688513-9d40-800f-828c-f0817d8964c3
2026-01-15 07:11:27 +01:00
kevinveenbirkenbach f59a4fc649 Reduced deploy size for flowise 2026-01-15 07:03:05 +01:00
kevinveenbirkenbach 7313533b54 Removed docker compose restart and replaced by up due to interference during setup 2026-01-15 06:53:38 +01:00
kevinveenbirkenbach e158dd3f3a refactor(bigbluebutton): make TURN/TLS optional and align coturn with shared service model
- Switch BigBlueButton Docker source to upstream bigbluebutton/docker (main)
- Migrate coturn/collabora from internal to shared service model
- Make TURN protocol configurable (turn vs turns) via TLS_ENABLED
- Add BBB_TURN_PROTOCOL variable and use it in TURN_SERVER
- Only inject coturn TLS cert/key when TLS is enabled
- Normalize IPv6 flag handling with explicit boolean check
- Fix YAML formatting, trailing whitespace, and missing newlines
- Fix web-svc-legal dependency list formatting
- Add TODO entry for inventory dependency resolution

https://chatgpt.com/share/69687cb2-1550-800f-a5a4-394de22b21ec
2026-01-15 06:35:38 +01:00
kevinveenbirkenbach 65405d6a7b sys-stk-backend: prevent self-loading of backend services
Add an explicit guard to avoid loading the current application as a backend
service. This prevents accidental self-includes in utils/load_app.yml when
docker.services.<service>.enabled/shared is true and no run_once flag exists.

This ensures backend services are only loaded if:
- the service is enabled and shared
- it has not been loaded before (run_once_*)
- it is not the current application itself

https://chatgpt.com/share/69686928-00e8-800f-8a53-a4eb7a53116a
2026-01-15 05:12:17 +01:00
kevinveenbirkenbach bcd101f487 refactor(sys-stk-backend): rename loop item and simplify service mapping
- Replace generic loop item with semantic loop_var `service`
- Simplify service descriptors to `id` and `name`
- Improve readability and log output via explicit loop labeling
- Keep include interface unchanged via vars mapping

https://chatgpt.com/share/69686823-08bc-800f-8008-01a69d5721fe
2026-01-15 05:07:59 +01:00
kevinveenbirkenbach 49df004a5f General py optimations 2026-01-15 05:02:55 +01:00
kevinveenbirkenbach 44f3cdd83f Removed falsy services entry 2026-01-15 04:58:21 +01:00
kevinveenbirkenbach ecb8c67782 web-app-openwebui: add ldap service config and fix boolean checks in env template
- Add docker.services.ldap config with enabled/shared flags
- Fix Jinja conditionals by casting OPENWEBUI_OIDC_ENABLED and OPENWEBUI_LDAP_ENABLED to bool
- Align variable formatting in vars/main.yml

https://chatgpt.com/share/696864da-bd44-800f-8e2e-990eee8130e7
2026-01-15 04:53:57 +01:00
kevinveenbirkenbach 5f60e7ba2a refactor(database): introduce database_reach_host and decouple from DOCKER_REACH_HOST
Add dedicated database_reach_host variable to sys-svc-rdbms and use it for
direct database access in application roles.

This separates control-plane database access from generic Docker reach logic
and improves portability and CI stability.

Updated:
- sys-svc-rdbms vars: add database_reach_host
- web-app-openproject: use database_reach_host for LDAP DB queries
- web-app-peertube: use database_reach_host for OIDC DB updates

https://chatgpt.com/share/696863e8-4370-800f-bea0-ad48b98ba0f6
2026-01-15 04:49:55 +01:00
kevinveenbirkenbach 989c0c0fa2 refactor(stacks): merge stateful/stateless backend+full stacks into sys-stk-backend/sys-stk-full
- Replace sys-stk-back-stateful + sys-stk-back-stateless with unified sys-stk-backend role
- Replace sys-stk-full-stateful + sys-stk-full-stateless with unified sys-stk-full role
- Add reusable task helpers: _load_service.yml (optional deps) and 01_database.yml (DB bootstrap)
- Switch optional dependency loading (OpenLDAP, Ollama) to service_load_enabled (enabled && shared) + run_once guard
- Remove legacy OLLAMA_LOCAL_ENABLED flag; rely on docker.services.ollama.enabled/shared config
- Update all affected app/service roles and web-app template to use new stack role names

https://chatgpt.com/share/69685fb2-cb1c-800f-a9e8-2f5f765a1a53
2026-01-15 04:31:54 +01:00
kevinveenbirkenbach 854f5501f7 test(filter): remove invalid applications type guard test for service_load_enabled
The applications parameter is guaranteed to always be a dict in the runtime
environment. The defensive test for non-mapping input was therefore removed
to avoid unrealistic failure scenarios and false negatives.

This keeps the unit tests aligned with the actual inventory and schema model.

https://chatgpt.com/share/6968551e-7b74-800f-8a5e-a2380c950d06
2026-01-15 03:46:47 +01:00
kevinveenbirkenbach 978a79f8df web-app-mediawiki: flush non-update handlers before triggering update
Decouple MediaWiki config deployment from the update handler execution.

When host-side PHP config files change:
- Flush all previously notified non-update handlers first (e.g. docker-compose restarts)
- Then trigger the MediaWiki update handler in a controlled second phase

This guarantees that the container and services are fully restarted and ready
before maintenance/update.php is executed.

https://chatgpt.com/share/69684c66-fa20-800f-a4a1-6bdfb46c6672
2026-01-15 03:09:37 +01:00
kevinveenbirkenbach aafb11ce31 Added missing LDAP enabled configuration 2026-01-15 02:53:16 +01:00
kevinveenbirkenbach ef4a6611d7 ci(deploy): log effective compose env without leaking secrets
Print selected INFINITO_* and GITHUB_SHA variables before starting the CI
compose stack and only indicate whether NIX_CONFIG is set, avoiding secret
exposure while making the effective image/tag visible in logs.

https://chatgpt.com/share/69684776-86c0-800f-b089-7e549a83e87f
2026-01-15 02:48:29 +01:00
kevinveenbirkenbach d009af8e63 svc-ai-ollama: move CI image override into role and auto-select alpine image in DinD
Remove the CI-specific Ollama image override from inventory.sample.yml and
move the logic into the svc-ai-ollama role configuration.

The role now automatically selects:
- alpine/ollama when running inside Docker-in-Docker (GitHub Actions)
- ollama/ollama for normal production deployments

This keeps the inventory environment-agnostic and ensures consistent,
self-contained role behavior across CI and production.

https://chatgpt.com/share/69684373-1d48-800f-bff6-ca436accfdcf
2026-01-15 02:31:24 +01:00
kevinveenbirkenbach 6c04c09fb4 fix(ci): remove trailing whitespace from INFINITO_IMAGE to avoid invalid Docker image reference
The Makefile defined INFINITO_IMAGE with trailing tabs/spaces, which caused
Docker to fail with "invalid reference format" during CI pulls/builds.
This change removes the trailing whitespace so the image reference is valid.

https://chatgpt.com/share/69683f7d-faa0-800f-bb55-c40a4e9b7737
2026-01-15 02:14:15 +01:00
kevinveenbirkenbach a323f2199d optimized code tests 2026-01-15 02:07:31 +01:00
kevinveenbirkenbach 8ea56548d1 Optimized INFINITO_BUILD_LOCAL 2026-01-15 01:53:32 +01:00
kevinveenbirkenbach 4b5b768dce Enabled local build for test-code* workflows 2026-01-15 01:40:17 +01:00
kevinveenbirkenbach 646c8deb37 web-app-xwiki: add robust debug+fail handling for extension installer
- Wrap extension installer execution in block/rescue/always
- Fail hard when Groovy installer reports ERROR:: or INSTALLED_MISSING::
- Automatically collect debug info on failure:
  - repository DNS/HTTP reachability from container
  - mounted xwiki.properties and extension.repositories
  - XWiki container logs
- Always clean up temporary InstallExtensions page
- Prevent false "changed" state on installer execution

https://chatgpt.com/share/69683700-5ed8-800f-9870-479b7ff081ac
2026-01-15 01:38:20 +01:00
kevinveenbirkenbach f78fcb21cb Added correct image tag to test-deploy-*.yml workflows 2026-01-15 01:30:48 +01:00
kevinveenbirkenbach 97642e949c ci(release): switch to immutable ci-<sha> image tags and retag on release
- Build CI images with immutable ci-<sha> tags instead of latest
- Pass CI image tag into deploy workflows via INFINITO_IMAGE_TAG
- Derive CI_TAG from checked-out release tag commit
- Retag CI images to <version> and latest on release (no rebuild)
- Make release scripts independent from GITHUB_SHA coupling
- Improve robustness and reproducibility of release pipeline

https://chatgpt.com/share/696832f6-35e4-800f-a574-178013d4426e
2026-01-15 01:20:39 +01:00
kevinveenbirkenbach 6e129742ff fix(inventory): align overrides with application defaults schema
- Migrate svc-ai-ollama override from `services.*` to `docker.services.*`
  to match role defaults and validator expectations
- Replace unsupported `server.status_codes.web` override for Jira
  with `server.status_codes.default`

This fixes inventory validation failures in CI.

https://chatgpt.com/share/69682d39-1a88-800f-a392-b6ddaa728f23
2026-01-15 00:56:20 +01:00
kevinveenbirkenbach 5f25dec702 Removed duplicated network import 2026-01-15 00:31:27 +01:00
kevinveenbirkenbach 3608012e7d fix(mariadb): remove invalid backtick escaping in docker exec SQL
MariaDB CLI does not support the '\`' escape sequence. This caused
"Unknown command '\`'" errors when creating databases inside the
container. Backticks are now passed unescaped, which is valid SQL
syntax and works correctly with docker_container_exec.

https://chatgpt.com/share/69682604-8040-800f-ad83-0a1b7f6fc7ee
2026-01-15 00:25:47 +01:00
kevinveenbirkenbach b0a5e85ad9 fix(matrix): disable SSL listen flags when TLS is disabled to prevent OpenResty startup failure
OpenResty failed to start with:
  no "ssl_certificate" is defined for the "listen ... ssl" directive

Cause:
The Matrix OpenResty vhost was still generating `listen ... ssl` directives
even when TLS was disabled, while no ssl_certificate was configured.

Fix:
- Make Matrix federation listen directives fully TLS-aware
- Ensure no `ssl` flags are rendered when TLS is disabled (CI / Docker-in-Docker)
- Keep federation port usable in HTTP-only test environments

This fixes OpenResty validation errors in CI and Docker-in-Docker setups.

https://chatgpt.com/share/69682033-acf4-800f-ae83-b33c97f86c9a
2026-01-15 00:01:02 +01:00
kevinveenbirkenbach 90caf1b51d docker-compose: always manage files, make compose template optional, and track new E2E failures
- Drop deprecated docker_compose_file_creation_enabled flag (defaults + all consumers)
- Always run docker-compose file routines and bring stack up (caller can disable auto-flush via docker_compose_flush_handlers)
- Treat docker-compose.yml.j2 as optional via first_found (skip if missing)
- Clean up role template vars (remove removed flag, fix alignment)
- Record new E2E CI failures for Akaunting (502) and Baserow (timeout)

Fixes BigBlueButton CI failure caused by missing .env in repository:
Previously file routines could be skipped, so /opt/docker/bigbluebutton/services/repository/.env
was never created/linked and scripts/generate-compose failed with:
"cat: .env: No such file or directory" and "EXTERNAL_IPv4 is not set in .env".
With file management always enabled, the env file is copied/linked before compose generation.

https://chatgpt.com/share/69681be9-f944-800f-9b67-8afdc3a256fc
2026-01-14 23:42:25 +01:00
kevinveenbirkenbach 8f5f2e34e1 Set 302 for initial JIRA setup 2026-01-14 23:07:54 +01:00
kevinveenbirkenbach d508012653 fix(web-app-xwiki): add missing docker.services.ldap config to prevent get_app_conf assertion failure
The XWiki role expected docker.services.ldap.enabled for auth backend validation,
but the ldap service block was missing from the application config.

This caused get_app_conf to fail during the auth backend assertion
("Only one auth backend (OIDC or LDAP) may be enabled").

Add docker.services.ldap section with sane defaults:
- enabled: false
- shared: false
- trylocal: true

This restores schema consistency and prevents validation errors.

https://chatgpt.com/share/69680fef-507c-800f-9492-e0edd2880e92
2026-01-14 22:51:37 +01:00
kevinveenbirkenbach d47c59ab3e Replaced falsy mastodon by matomo 2026-01-14 22:37:50 +01:00
kevinveenbirkenbach 41d8194b49 Fix MariaDB init for database names with hyphens
- Quote database identifiers with backticks in CREATE DATABASE and GRANT
- Prevent SQL syntax errors for app IDs like `snipe-it`
- Extend TODO with E2E tracking links

https://chatgpt.com/share/696809fa-7728-800f-8f57-a79a9c230b5a
2026-01-14 22:25:52 +01:00
kevinveenbirkenbach 35fe82f4a8 ci(ollama): use alpine/ollama image for GitHub Actions to reduce disk usage
The official ollama/ollama image is too large for GitHub Actions runners and
causes frequent "no space left on device" errors during layer extraction.

Switch the CI inventory to use the lightweight alpine/ollama image instead:
- CPU-only, minimal footprint (~70MB)
- Sufficient for CI smoke tests and API checks
- Prevents Docker storage exhaustion on hosted runners

Production setups can still override the image and use the official ollama image.

https://chatgpt.com/share/696805ab-357c-800f-9923-55380347d71b
2026-01-14 22:07:46 +01:00
kevinveenbirkenbach dce01e4540 wait for nextcloud installation before modifying config.php
Ensure Nextcloud is fully installed before appending generated config:
- wait for successful `occ status` with `installed: true`
- add retry loop with timeout
- prevent premature access to config.php during initial setup

This avoids race conditions where config.php does not yet exist.

https://chatgpt.com/share/69680205-d6e0-800f-b47a-f03da156868f
2026-01-14 21:52:13 +01:00
kevinveenbirkenbach 7eda4801e2 ci(docker-compose): prune unused Docker data without removing networks or in-use images
Replace docker system prune with targeted prune commands to prevent
accidental removal of external or freshly created networks while still
cleaning up unused containers, images, volumes and build cache.

This prevents CI images from exceeding GitHub Actions disk limits (~14 GB)
without breaking docker-compose networking.

https://chatgpt.com/share/69680011-fce0-800f-9af7-7989ad7771ed
2026-01-14 21:43:25 +01:00
kevinveenbirkenbach c7e4583baf fix(mediawiki): prevent Docker from creating LocalSettings.php as directory
Ensure LocalSettings.php exists as a file before docker compose up runs.
Otherwise Docker creates the bind mount path as a directory which breaks
MediaWiki bootstrap and causes run.php update to fail.

This guarantees a correct file bind-mount for /var/www/html/LocalSettings.php
and prevents template rendering into a wrongly created directory.

https://chatgpt.com/share/6967fdae-fc90-800f-88e8-23d54fa7f21d
2026-01-14 21:33:38 +01:00
kevinveenbirkenbach e29fa82b67 web-svc-coturn: add nginx health service and fix localhost port mapping
- Add minimal nginx sidecar returning OK on root path for health checks
- Bind nginx explicitly to port 80 inside container
- Register web-svc-coturn localhost port (8064)
- Migrate stack usage from sys-stk-semi-stateless to sys-stk-full-stateless
- Normalize variable formatting and fix missing newlines

This enables a lightweight HTTP health endpoint alongside the Coturn service
for monitoring, probes and front-layer integration.

https://chatgpt.com/share/6967fa88-ee04-800f-a52a-47306a945528
2026-01-14 21:20:17 +01:00
kevinveenbirkenbach 3b3f4da49d Load aliases when defined automatic 2026-01-14 21:17:27 +01:00
kevinveenbirkenbach d3a81878c7 Solved configuration bug 2026-01-14 20:10:34 +01:00
kevinveenbirkenbach d4d2f8123b ci(nightly): stop cancelling in-progress runs
- Disable cancel-in-progress for nightly workflow
- Allow queued nightly runs instead of killing active pipelines
- Rely on global concurrency for serialization only

https://chatgpt.com/share/6967e809-7df4-800f-a234-b40ead86626f
2026-01-14 20:08:44 +01:00
kevinveenbirkenbach fbc8444e6f ci(e2e): serialize deploy pipeline server -> universal -> workstation
- Run deployment tests sequentially for focused E2E stabilization
- Make universal depend on server
- Make workstation depend on server and universal
- Keep image build as single entry point

https://chatgpt.com/share/6967e809-7df4-800f-a234-b40ead86626f
2026-01-14 20:01:25 +01:00
kevinveenbirkenbach 2506c0a480 ci(release): restrict version workflow to v* tags on master only
- Remove manual workflow_dispatch trigger
- Gate release execution to tags reachable from master
- Prevent accidental releases from feature branches
2026-01-14 19:56:00 +01:00
kevinveenbirkenbach 7332cdf4fc ci(workflows): split release logic and add nightly release check
- Rename CI entry workflows to "entry-*" (push, PR, nightly)
- Replace monolithic ci-version workflow with reusable release-version workflow
- Add entry-push-version wrapper (tag push + manual dispatch)
- Add nightly job that triggers release workflow for missing version images
- Enable GHCR login for manifest-based existence checks

https://chatgpt.com/share/6967cff2-1584-800f-a2d3-1ef7a824f62f
2026-01-14 19:48:36 +01:00
kevinveenbirkenbach 48d3afa793 ci: introduce global CI concurrency with nightly priority
Unify PR, push, nightly and release workflows under a single global
concurrency group (infinito-ci-global) to ensure only one CI run executes
at a time.

Configure the nightly workflow to run daily at 00:00 UTC and to cancel any
in-progress CI runs, giving nightly jobs priority for cleanup and full
validation.

This prevents overlapping CI runs, reduces runner/disk pressure, and
enforces a strictly serialized CI pipeline.

https://chatgpt.com/share/6967d742-9178-800f-ad20-f1c3f77f69bc
2026-01-14 18:49:49 +01:00
kevinveenbirkenbach 64f7a7d54d ci: serialize PR/push/scheduled/release runs via concurrency groups
Add top-level concurrency blocks to CI entry workflows (PR, push, schedule,
version) to avoid overlapping runs and reduce resource contention on runners.

Also refactor code-analyses workflow dependencies so deploy:workstation waits
for deploy:server to complete (prioritize server debugging), and do minor
whitespace/newline cleanups in web-opt-rdr-domains role files.

https://chatgpt.com/share/6967cff2-1584-800f-a2d3-1ef7a824f62f
2026-01-14 18:18:31 +01:00
kevinveenbirkenbach 4364d42f98 Switched to dedicated load handler 2026-01-14 17:46:58 +01:00
kevinveenbirkenbach b8cdf58beb Hardened variable 2026-01-14 17:41:32 +01:00