25 Commits

Author SHA1 Message Date
26b392ea76
refactor!: replace sys-systemctl with sys-service, add sys-daemon, and rename systemctl_* → system_service_* across repo
- Swap role includes: sys-systemctl → sys-service in all roles
- Rename variables everywhere: systemctl_* → system_service_* (incl. systemctl_id → system_service_id)
- Templates: ExecStart now uses {{ system_service_script_exec }}; add optional RuntimeMaxSec via SYS_SERVICE_DEFAULT_RUNTIME
- Move SYS_SERVICE defaults into roles/sys-service/defaults (remove SYS_SERVICE_ALL_ENABLED & SYS_SERVICE_DEFAULT_STATE from group_vars/07_services.yml)
- Tidy group_vars/all/08_timer.yml formatting
- Introduce roles/sys-daemon:
  - default manager timeouts (timeouts.conf)
  - optional purge of /etc/systemd/system.conf.d
  - validation via systemd-analyze verify
  - handlers for daemon-reload & daemon-reexec
- Refactor sys-timer to system_service_* variables (docs and templates updated)
- Move filter_plugins/filetype.py under sys-service
- Update meta/README to point to official systemd docs
- Touch many roles (backup/cleanup/health/repair/certs/nginx/csp/wireguard/ssd-hdd/keyboard/update-docker/alarm compose/email/telegram/etc.) to new naming

BREAKING CHANGE:
- Role path/name change: use `sys-service` instead of `sys-systemctl`
- All `systemctl_*` vars are now `system_service_*` (e.g., on_calendar, state, timer_enabled, script_exec, id)
- If you have custom templates, adopt RuntimeMaxSec and new variable names

Chat context: https://chatgpt.com/share/68a47568-312c-800f-af3f-e98575446327
2025-08-19 15:00:44 +02:00
bf63e01b98
refactor(systemd-services): migrate SYS_SERVICE_SUFFIX usage to get_service_name filter
Replaced all hardcoded service name concatenations with the new get_service_name filter.
This ensures consistency, proper lowercase formatting, and correct handling of '@' suffixed units.

Added unittests for the filter (normal, custom suffix, '@'-units, and lowercase normalization).

Context: see ChatGPT discussion https://chatgpt.com/share/68a38beb-b9bc-800f-b7ed-cdd2b64b2604
2025-08-18 22:24:33 +02:00
2569abc0be
Refactor systemctl services and timers
- Unified service templates into generic systemctl templates
- Introduced reusable filter plugins for script path handling
- Updated path variables and service/timer definitions
- Migrated roles (backup, cleanup, repair, etc.) to use systemctl role
- Added sys-daemon role for core systemd cleanup
- Simplified timer handling via sys-timer role

Note: This is a large refactor and some errors may still exist. Further testing and adjustments will be needed.
2025-08-18 21:22:16 +02:00
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
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
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
1a42e8bd14
Replaced depenencies by includes for performance reasons 2025-08-12 03:08:33 +02:00
1595a7c4a6
Optimized tests für run once 2025-08-12 02:38:37 +02:00
1ba50397db
Optimized performance by moving multiple similar when includes to own tasks file 2025-08-11 13:15:31 +02:00
44e0fea0b2
Renamed cymais to infinito and did some other optimations and logout implementations 2025-07-29 16:35:42 +02:00
bb7859ab44
Optimized update roles 2025-07-15 15:18:07 +02:00
f02ca50f88
Renamed backup roles 2025-07-14 19:04:30 +02:00
168c5c0da6
Another big round of refactoring and cleaning... 2025-07-11 17:55:26 +02:00
9668e74139
Shorted backup- to bkp- 2025-07-09 03:36:44 +02:00
998f4e383d Updated discourse for docker-update role 2025-02-13 14:11:06 +01:00
eea02572d9 replaced reload through restart 2024-02-06 22:32:37 +01:00
b7e3a7f838 Added .cymais.service suffix to make cymais files more visible 2024-01-10 11:18:38 +01:00
ee1b2e0140 Optimized runtime parameter 2024-01-09 12:47:44 +01:00
9c81a48f17 Removed buggy variable mapping 2024-01-03 12:07:19 +01:00
4e09fbd3fb Implemented variable mapping to reduce complexity 2024-01-02 12:23:25 +01:00
a188d1025a implemented backup of everything before docker update 2023-12-27 22:12:19 +01:00
1bcf06934d Changed backup logic 2023-12-16 12:22:31 +01:00
0cd2b109e4 Solved bugs 2023-11-16 16:40:45 +01:00
04f69aefde Optimized docker update 2023-11-16 15:18:11 +01:00
240dbac8dd optimized draft 2023-11-16 14:04:42 +01:00