Commit Graph
14682 Commits
Author SHA1 Message Date
kevinveenbirkenbach 1d39489576 Solved discourse network bug 2026-02-05 12:00:04 +01:00
kevinveenbirkenbach 88924b4fdd Removed update mode verywhere to keep behaviour more deterministic 2026-02-05 11:43:14 +01:00
kevinveenbirkenbach 4ca9bc61e0 Removed MODE_UPDATE conditions to make behaviour more deterministic 2026-02-05 11:39:09 +01:00
kevinveenbirkenbach db3dc225bf docker-compose: always pull base images on no-cache build fallback
Ensure Dockerfile base images are refreshed during the no-cache build
fallback by unconditionally enabling --pull. This avoids stale FROM
layers when MODE_UPDATE is false and aligns build behavior with the
preceding compose pull strategy.

https://chatgpt.com/share/69847205-2c78-800f-9a29-2d7ff541a854
2026-02-05 11:33:18 +01:00
kevinveenbirkenbach d8df986e7a Removed MODE_UPDATE from pul 2026-02-05 11:29:07 +01:00
kevinveenbirkenbach 5d828b2698 Optimized workflow names 2026-02-05 11:27:37 +01:00
kevinveenbirkenbach d9d2af4a39 Solved templating error 2026-02-05 11:23:14 +01:00
kevinveenbirkenbach ce590df24b retry git repository pulls with backoff
https://chatgpt.com/share/69846cb0-1c10-800f-bad5-52b07c41d3c8
2026-02-05 11:10:49 +01:00
kevinveenbirkenbach 838ebaa99d Added helper for ipv6 2026-02-05 11:03:52 +01:00
kevinveenbirkenbach 6d55c6fe5f Used correct branch 2026-02-05 11:01:05 +01:00
kevinveenbirkenbach 2d2e218fe5 Solved templating warnings 2026-02-05 11:00:34 +01:00
kevinveenbirkenbach 49be4ac599 Fixed discource network handler 2026-02-05 03:50:00 +01:00
kevinveenbirkenbach c4b08324a5 refactor(templates): use database lookup want= for volume/host access
Replace attribute-style access (lookup('database', app).volume/.host/etc.)
with explicit want= lookups across docker-compose and matrix templates
to align with updated database lookup plugin interface.

https://chatgpt.com/share/6983ddfd-aee4-800f-bce9-18eca2144f25
2026-02-05 01:01:55 +01:00
kevinveenbirkenbach 78c6b4b860 fix(bkp): move assert fail_msg under ansible.builtin.assert
Fixes conflicting action statements error by properly nesting
fail_msg inside the assert module in database seed task.
2026-02-05 00:48:32 +01:00
kevinveenbirkenbach eac5207127 Deleted deprecated vars file 2026-02-05 00:45:00 +01:00
kevinveenbirkenbach 0ca96ce47d refactor: use database lookup in compose volumes 2026-02-05 00:41:26 +01:00
kevinveenbirkenbach d542817f02 - replace database_* usages in templates and vars
- switch to lookup('database', application_id)
- keep behavior consistent for central/shared DBs
2026-02-05 00:33:22 +01:00
kevinveenbirkenbach 37b96a24f5 Removed syncope 2026-02-05 00:26:25 +01:00
kevinveenbirkenbach 135f366369 refactor(sys-svc-rdbms): switch central DB logic to database lookup plugin
- group central database creation and backup seeding into a single block
- resolve database metadata (type, instance, host, etc.) via lookup('database')
- remove legacy per-task central DB handling
- prepare sys-svc-rdbms for unified database plugin usage

https://chatgpt.com/share/6983cd01-a430-800f-9fe7-36551b14d30d
2026-02-04 23:49:23 +01:00
kevinveenbirkenbach e194981535 refactor(backup): make database seeding strict and explicit
- enforce explicit database parameters for baudolo seeding
- replace implicit checks with assert-based fail-fast logic
- update rdbms, matrix and bigbluebutton roles to pass all db fields
- keep backup behavior unchanged while hardening configuration

https://chatgpt.com/share/6983c9e4-860c-800f-b0f7-28462c08e249
2026-02-04 23:36:08 +01:00
kevinveenbirkenbach 4b7200b451 lookup(database): add stable db role id and switch consumers to use it
- Extend database lookup with `id` (e.g. svc-db-postgres, svc-db-mariadb)
- Return empty id when no database type is configured
- Replace dynamic 'svc-db-{{ type }}' constructions with lookup-provided id
- Update docker network templates to rely on lookup database id
- Adjust sys-svc-rdbms to load DB role via lookup id
- Extend unit tests to assert correct id behavior for all cases

This makes DB role resolution explicit, safer, and less error-prone.

https://chatgpt.com/share/6983c6de-c5f8-800f-a5e3-786f90e0ebc1
2026-02-04 23:23:03 +01:00
kevinveenbirkenbach b6550988e6 Used config to don't provoke exception 2026-02-04 22:54:50 +01:00
kevinveenbirkenbach f6f96a11ac Refactor: use database lookup helper everywhere
https://chatgpt.com/share/6983bcf6-85bc-800f-a0fc-5684b9078469
2026-02-04 22:52:08 +01:00
kevinveenbirkenbach 57df7e6c0b Deleted legacy debug function 2026-02-04 22:42:11 +01:00
kevinveenbirkenbach bd3f838188 lookup(database): add enabled/shared flags and extend unit tests
Expose database.enabled and database.shared via the database lookup plugin.
Use shared flag consistently to determine central DB behavior and surface both
flags even when no database type is configured. Update unit tests to cover the
new fields and verify behavior for dedicated vs. shared databases.

https://chatgpt.com/share/6983bcf6-85bc-800f-a0fc-5684b9078469
2026-02-04 22:40:54 +01:00
kevinveenbirkenbach 24616b2d35 refactor: extract get_docker_paths to module_utils and fix affected tests
- Move get_docker_paths() implementation from filter_plugins to module_utils
  to make it reusable by filters and lookup plugins (single source of truth)
- Adapt filter_plugins/get_docker_paths.py to re-export the shared util
- Add new lookup plugin "database" resolving DB settings from applications config
- Fix unit test patching: patch module_utils.docker_paths_utils.get_entity_name
  instead of filter module, because imports are now bound at util level
- Add comprehensive unit tests for database lookup covering all helper-variable cases

https://chatgpt.com/share/6983b526-00dc-800f-b3a0-b71e4104d0fc
2026-02-04 22:07:42 +01:00
kevinveenbirkenbach 91965f616a Optimized redeploy 2026-02-04 21:15:35 +01:00
kevinveenbirkenbach a7bd3109bb Implemented default for missing database_consumer_id 2026-02-04 20:49:41 +01:00
kevinveenbirkenbach 328bebd1e8 Removed True 2026-02-04 19:53:14 +01:00
kevinveenbirkenbach 79b155f709 Removed unnecessary True 2026-02-04 19:52:40 +01:00
kevinveenbirkenbach 8a81630391 Added newline at file and POSIX compatible 2026-02-04 19:49:56 +01:00
kevinveenbirkenbach 84e592f630 fix(dns): avoid CoreDNS forwarding via /etc/resolv.conf
CoreDNS was forwarding external queries via its own /etc/resolv.conf,
which caused SERVFAIL in systemd-based CI containers due to a broken
Docker/host resolver chain.

Switch to explicit upstream DNS servers (1.1.1.1, 8.8.8.8) to ensure
reliable external name resolution (e.g. pypi.org, google.com) in CI.

https://chatgpt.com/share/69837671-6884-800f-8ded-706b35e82bab
2026-02-04 17:40:12 +01:00
kevinveenbirkenbach 1860727ef8 Optimized domain redirects 2026-02-04 16:26:06 +01:00
kevinveenbirkenbach 34d1da7237 Solved set fact test 2026-02-04 15:53:07 +01:00
kevinveenbirkenbach 9f24a0a0fa Optimized debugging 2026-02-04 15:07:24 +01:00
kevinveenbirkenbach 25795297e4 Optimized redeploy 2026-02-04 15:05:15 +01:00
kevinveenbirkenbach f9f0501f1a Refresh matomo 2026-02-04 14:03:38 +01:00
kevinveenbirkenbach 3e8abe3cb4 fix(rdbms): preserve database_consumer_id across role boundaries
- Introduce database_consumer_id_passed to avoid fact/vars collisions
- Explicitly pass consumer context into svc-db-postgres via include_role
- Strengthen context assertion in postgres init tasks
- Move once-flag include to the beginning of postgres core tasks
- Make POSTGRES_EXEC_SHELL non-interactive by injecting PGPASSWORD
- Improve test coverage to detect facts overridden by include-time vars

https://chatgpt.com/share/69833e56-93a0-800f-8e3d-d970cf87daef
2026-02-04 13:40:44 +01:00
kevinveenbirkenbach 26ad45bd3f Removed unnecessary setting of token fact 2026-02-04 11:59:55 +01:00
kevinveenbirkenbach ea2ca2b7ac Solved test 2026-02-04 11:51:23 +01:00
kevinveenbirkenbach 8907b6c910 tests(integration): prevent overriding set_fact variables via include vars
Add an integration test that statically scans all Ansible task files under
roles/*/tasks/** and tasks/** and fails if a variable set via set_fact is
also passed via vars: on include/import tasks or roles.

This guards against scope leaks and accidental host-fact overrides caused
by mixing context variables with set_fact.

https://chatgpt.com/share/6983220c-29f4-800f-bb9b-5145b1c1cf75
2026-02-04 11:40:06 +01:00
kevinveenbirkenbach a5bbba1eb3 Added inventory to cleanup 2026-02-04 10:07:02 +01:00
kevinveenbirkenbach 77a0bc5508 svc-db-postgres: unify docker exec shell + tidy yaml formatting
- Align database config key spacing and add missing newline in config/main.yml
- Run socket readiness check as OS user postgres
- Introduce POSTGRES_EXEC_SHELL helper and use it for TCP/auth debug psql calls
- Update sys-svc-rdbms comment (behavior note seems outdated)

https://chatgpt.com/share/6982a0b9-be28-800f-b5dc-d489b1e4eed8
2026-02-04 02:28:01 +01:00
kevinveenbirkenbach d8be318485 Solved variable names 2026-02-04 01:41:00 +01:00
kevinveenbirkenbach 3e39f123ce Linebreak 2026-02-04 01:16:44 +01:00
kevinveenbirkenbach b6fa8c1a31 Build inventory at beginning 2026-02-04 01:16:10 +01:00
kevinveenbirkenbach fe40b48cab tests(local): add non-destructive dedicated deploy and refactor local utils
- Add local dedicated_distro.sh implementing the same two-pass deploy logic
  as CI (ASYNC_ENABLED=false/true) without destructive cleanup
- Switch test-local-dedicated to pure ENV-based interface (TEST_DEPLOY_TYPE, APP)
- Refactor local deploy helpers into utils/ structure:
  - move reset.sh to utils/reset.sh
  - split cleanup into targeted purge helpers (entity, web, lib)
- Update Makefile targets to reflect new structure and workflows

https://chatgpt.com/share/6982804e-1f60-800f-809e-629d0fe62de3
2026-02-04 00:10:00 +01:00
kevinveenbirkenbach 4066dbfeed Adapted script path 2026-02-03 22:51:34 +01:00
kevinveenbirkenbach 067669783a refactor(purge): split entity purge into db/compose/dir scripts
- Add purge/entity/all.sh orchestrator with --wipe-data-only and --db-only
- Extract DB purge logic into purge/entity/db.sh (best-effort Postgres + MariaDB)
- Add purge/entity/compose.sh to bring stacks down with volumes removed
- Add purge/entity/dir.sh to remove stack directory and volumes folder
- Rename purge_web.sh to purge/web.sh for consistent layout

https://chatgpt.com/share/69826b33-1470-800f-9def-6b4289713e2f
2026-02-03 22:39:39 +01:00
kevinveenbirkenbach 97b342765d Set moodle ressources 2026-02-03 21:43:43 +01:00