Commit Graph

54 Commits

Author SHA1 Message Date
3a839cfe37 Refactor systemctl services and categories due to alarm bugs
This commit restructures systemctl service definitions and category mappings.

Motivation: Alarm-related bugs revealed inconsistencies in service and role handling.

Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
2025-08-18 13:35:43 +02:00
d1cd87c843 Fix RBAC groups handling and refactor Keycloak role
- Fixed incorrect handling of RBAC group configuration (moved from OIDC claims into dedicated RBAC variable set).
- Unified RBAC group usage across applications (LAM, pgAdmin, phpLDAPadmin, phpMyAdmin, YOURLS).
- Replaced old 'KEYCLOAK_OIDC_RBAC_SCOPE_NAME' with dedicated 'KEYCLOAK_RBAC_GROUP_*' variables.
- Updated OAuth2 Proxy configuration to use 'RBAC.GROUP.CLAIM'.
- Refactored Keycloak role task structure:
  * Renamed and reorganized task files for clarity ('_update.yml', '02_cleanup.yml', etc.).
  * Introduced meta and dependency handling separation.
- Cleaned up Keycloak config defaults and recaptcha placeholders.
2025-08-17 23:27:01 +02:00
2620ee088e refactor(dns): unify Cloudflare + Hetzner handling across roles
- replaced CERTBOT_DNS_API_TOKEN with CLOUDFLARE_API_TOKEN everywhere
- introduced generic sys-dns-cloudflare-records role for managing DNS records
- added sys-dns-hetzner-rdns role with both Cloud (hcloud) and Robot API flavors
- updated Mailu role to:
  - generate DKIM before DNS setup
  - delegate DNS + rDNS records to the new generic roles
- removed legacy per-role Cloudflare vars (MAILU_CLOUDFLARE_API_TOKEN)
- extended group vars with HOSTING_PROVIDER for rDNS flavor decision
- added hetzner.hcloud collection to requirements

This consolidates DNS management into reusable roles,
supports both Cloudflare and Hetzner providers,
and standardizes variable naming across the project.
2025-08-16 21:43:01 +02:00
411a1f8931 Optimized LDAP_DN_BASE for hostname 2025-08-15 15:31:38 +02:00
022800425d THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs 2025-08-15 15:15:48 +02:00
0228014d34 Replaced .infinito.service and .infinito.timer by SOFTWARE_NAME suffix, optimized LICENSE link and update OIDC Realm and ID conf 2025-08-14 14:39:18 +02:00
1b638c366e Introduced variable SOFTWARE_NAME, to make better visible when software components are used. Will be relevant for OIDC 2025-08-14 12:49:06 +02:00
c729edb525 Refactor async task handling
- Standardize async/poll usage with 'ASYNC_ENABLED | bool'
- Add async/poll parameters to Cloudflare, Nginx, Mailu, MIG, Nextcloud, and OpenLDAP tasks
- Update async configuration in 'group_vars/all/00_general.yml' to ensure boolean evaluation
- Allow CAA, cache, and DNS tasks to run asynchronously when enabled

https://chatgpt.com/share/689cd8cc-7fbc-800f-bd06-a667561573bf
2025-08-13 21:56:26 +02:00
597e9d5222 Refactor async execution handling across LDAP and Nextcloud roles
- Introduce global async configuration in group_vars/all/00_general.yml:
  - ASYNC_ENABLED (disabled in debug mode)
  - ASYNC_TIME (default 300s, omitted if async disabled)
  - ASYNC_POLL (0 for async fire-and-forget, 10 for sync mode)
- Replace hardcoded async/poll values with global vars in:
  - svc-db-openldap (03_users.yml, 04_update.yml)
  - web-app-mig (02_build_data.yml)
  - web-app-nextcloud (03_admin.yml, 04_system_config.yml, 05_plugin.yml,
    06_plugin_routines.yml, 07_plugin_enable_and_configure.yml)
- Guard changed_when and failed_when conditions to only evaluate in synchronous
  mode to avoid accessing undefined rc/stdout/stderr in async runs

  https://chatgpt.com/share/689cd8cc-7fbc-800f-bd06-a667561573bf
2025-08-13 20:26:40 +02:00
db0e030900 Renamed general and mode constants and implemented a check to verify that constants are just defined ones over the whole repository 2025-08-13 19:11:14 +02:00
6e8ae793e3 Added auto setting for redirect urls for keycloak clients. Element and Synapse still need to be mapped 2025-08-11 00:17:18 +02:00
b880b98ac3 Added hints for infinito modes 2025-08-10 11:34:33 +02:00
aae69ea15b Ensure that keycloak is up 2025-08-08 17:25:31 +02:00
cdc97c8ba5 Raised certbot_dns_propagation_wait_seconds to 5min 2025-08-08 08:34:49 +02:00
7f53cc3a12 Replaced web_protocol by WEB_PROTOCOL 2025-08-07 12:31:20 +02:00
99c6c9ec92 Optimized CSP check 2025-08-07 09:33:19 +02:00
44e0fea0b2 Renamed cymais to infinito and did some other optimations and logout implementations 2025-07-29 16:35:42 +02:00
27973c2773 Optimized injection layer on lua base, as replace for nginx replace. Also optimized cloudflare cache deletion(no everytime for cleanup). Still CDN is required for logout mechanism via JS and Nextcloud deploy is buggy after changing from nginx to openresty. Propably some variable overwritte topic. Should be solved tomorrow. 2025-07-24 19:13:13 +02:00
f62355e490 Replaced nginx native with openresty for logout injection. Right now still buggy on nextcloud and espocrm 2025-07-24 03:19:16 +02:00
5e315f9603 Activated correct oidc solution for nextcloud 2025-07-22 21:32:26 +02:00
2f45038bef Solved variable bugs 2025-07-16 23:01:25 +02:00
af3ea9039c Restructure and cleaned up in preparation of new backup logic 2025-07-15 23:51:51 +02:00
bbabc58cf9 Optimized webport and certbot_dns_api_token 2025-07-15 15:04:27 +02:00
46cf65f296 Optimized Matomo role 2025-07-09 10:59:36 +02:00
52f467c15c Added application ids filter for easier partial deployment 2025-07-04 21:52:37 +02:00
19a489b3c5 Finished Moodle OIDC Login Base 2025-06-18 18:25:23 +02:00
76aef5949b Optimized Docker Matrix Role in Preparation for use on CyMaIS.Cloud Server 2025-05-15 21:11:21 +02:00
e7c193f409 Solved some variable bugs and cleaned up 2025-05-09 18:33:47 +02:00
9575ee31ff Optimized nginx CSP (prop. leads to problems due to too high restrictions for some roles) and implemented health check for mailer 2025-04-30 17:21:05 +02:00
d796158c61 Optimized cloudflare implementation 2025-04-29 00:10:10 +02:00
04deeef385 Implemented SAN via Letsencrypt and Certbot 2025-04-28 16:47:51 +02:00
0fc9c3e495 Implemented certbot for cloudflare\hetzner, optimized documentation and solved bugs 2025-04-28 00:33:55 +02:00
4958b08ca7 Further optimations of espocrm 2025-04-25 17:22:05 +02:00
36606b5594 Further optimisation of system user creation 2025-04-24 19:25:39 +02:00
59e985eb3b In between commit auto user creation before system email refactoring 2025-04-24 14:42:38 +02:00
250f26e03c Optimized listmonk settings 2025-04-24 13:11:25 +02:00
f8c984d6c2 Refactored CyMaIS basic features and optimized wordpress implementation 2025-04-18 23:17:29 +02:00
7e24d9b1c3 Added OIDC draft für wordpress 2025-04-17 11:51:37 +02:00
bb48e8ae36 Solved portfolio bug, entered keycloak entries for portfolio, added hints to phpmyadmin and updated mailu documentary 2025-03-21 20:19:12 +01:00
0928245853 Solved nextcloud plugin bugs in context ldap 2025-03-21 18:43:06 +01:00
836a3e0238 Big cleanup 2025-03-20 02:20:00 +01:00
6520350731 Changed variable name 2025-03-19 20:28:46 +01:00
72693e09e2 Implemented more detailed configuration for landing_page, css and matomo and restructured code 2025-03-19 20:26:43 +01:00
1a7e7b3851 Solved path bug and optimized memcache 2025-02-28 13:45:19 +01:00
9a9bae4f2c Optimized Nextcloud for OIDC flavor login and adapted user administrator credentials 2025-02-25 15:17:56 +01:00
0805929d41 Solved Matomo, Peertube, Nextcloud Bugs 2025-02-21 08:59:07 +01:00
b788a7e32b Implemented OIDC for mailu 2025-02-06 15:02:33 +01:00
53af17b2ab Solved Snipe IT bug 2025-02-05 12:53:06 +01:00
75ff756808 Solved redirected_domains merge 2025-02-03 22:28:42 +01:00
734d4f8ed3 Implemented wildcard function for www redirects and solved bugs 2025-02-03 18:10:07 +01:00