115 Commits

Author SHA1 Message Date
06baa4b03a Added correct validation handling 2025-08-27 18:10:49 +02:00
19889a8cfc fix(credentials, akaunting):
- update cli/create/credentials.py to handle vault literals correctly:
  * strip 'vault |' headers and keep only ANSIBLE_VAULT body
  * skip reprocessing keys added in same run (no duplicate confirmation prompts)
  * detect both 'vault' and 'ANSIBLE_VAULT' as already encrypted

Refs: https://chatgpt.com/share/68aed780-ad4c-800f-877d-aa4c40a47755
2025-08-27 12:02:36 +02:00
b867a52471 Refactor and extend role dependency resolution:
- Introduced module_utils/role_dependency_resolver.py with full support for include_role, import_role, meta dependencies, and run_after.
- Refactored cli/build/tree.py to use RoleDependencyResolver (added toggles for include/import/dependencies/run_after).
- Extended filter_plugins/canonical_domains_map.py with optional 'recursive' mode (ignores run_after by design).
- Updated roles/web-app-nextcloud to properly include Collabora dependency.
- Added comprehensive unittests under tests/unit/module_utils for RoleDependencyResolver.

Ref: https://chatgpt.com/share/68a519c8-8e54-800f-83c0-be38546620d9
2025-08-20 02:42:07 +02:00
d7ece2a8c3 Optimized message 2025-08-20 01:03:07 +02:00
6e538eabc8 Enhance tree builder: detect include_role dependencies from tasks/*.yml
- Added logic to scan each role’s tasks/*.yml files for include_role usage
- Supports:
  * loop/with_items with literal strings → adds each role
  * patterns with variables inside literals (e.g. svc-db-{{database_type}}) → expanded to glob and matched
  * pure variable-only names ({{var}}) → ignored
  * pure literal names → added directly
- Merges discovered dependencies under graphs["dependencies"]["include_role"]
- Added dedicated unit test covering looped includes, glob patterns, pure literals, and ignoring pure variables

See ChatGPT conversation (https://chatgpt.com/share/68a4ace0-7268-800f-bd32-b475c5c9ba1d) for context.
2025-08-19 19:00:03 +02:00
242347878d Moved email host and domain SPOT to SYSTEM_EMAIL constant 2025-08-19 10:00:35 +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
cc2c1dc730 Renamed injection services 2025-08-16 00:01:46 +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
f31565e4c5 Optimized URLS 2025-08-13 00:33:47 +02:00
8634b5e1b3 Finished move_unnecessary_dependencies implementation 2025-08-12 02:39:22 +02:00
82aaf7ad74 fixed move_unnecessary_dependencies.py 2025-08-11 23:41:48 +02:00
7e4a1062af Added draft for fixing dependencies 2025-08-11 23:16:32 +02:00
2fd83eaf55 Keep logs during deploy cleanup 2025-08-10 12:01:34 +02:00
44e0fea0b2 Renamed cymais to infinito and did some other optimations and logout implementations 2025-07-29 16:35:42 +02:00
c185c537cb Added auto seeding of credentials 2025-07-21 17:52:19 +02:00
1a2451af4e Added workflow deploy routine draft 2025-07-21 17:41:57 +02:00
b1bf7aaba5 Fixed BBB stuff 2025-07-21 15:10:05 +02:00
a1643870db Optimized auto playbook creation 2025-07-21 15:09:38 +02:00
45624037b1 Added shadow option to tree for mig 2025-07-18 19:35:44 +02:00
c1da74de3f Optimized sound for cli 2025-07-18 14:43:09 +02:00
0f1f40f2e0 Optimized deployment script 2025-07-18 11:42:05 +02:00
562603a8cd Restructured libraries 2025-07-17 16:38:20 +02:00
ad449c3b6a Adapted roles to new architecture 2025-07-17 15:39:31 +02:00
f4d1f2a303 Added partial test and skip-build flag 2025-07-16 22:16:22 +02:00
2d276cfa5e Optimized Dockerfile and github workflow 2025-07-16 09:38:19 +02:00
b6eb73dee4 Implemented that schemas are recognized 2025-07-15 22:22:22 +02:00
ac72544b72 Added validation for deploy application ids 2025-07-14 09:52:53 +02:00
756597668c Semi bsr for applications[] to prevent heavy to debug bugs in j2 - part 1 2025-07-13 15:11:38 +02:00
4cc4195fab Added refactoring script 2025-07-13 14:34:56 +02:00
4e3c124f55 Added a tool to get full j2 files for debugging 2025-07-13 02:58:19 +02:00
f07557c322 Implemented dict renderer to resolve assets 2025-07-12 23:25:31 +02:00
ead60dab84 Fail safed more parts of the code 2025-07-12 21:35:33 +02:00
adec2aed84 Renamed generate commands to build 2025-07-12 17:11:41 +02:00
3eb8b54a1a Restructured CLI meta commands 2025-07-12 17:05:00 +02:00
abd2545346 Solved validation import bug 2025-07-12 10:20:30 +02:00
44834f9873 Added more debugging stuff 2025-07-11 21:04:55 +02:00
33276263b0 Another bulk of refaktoring cleanup 2025-07-11 18:57:40 +02:00
25cee9a4c7 Finished Graph and Tree implementation 2025-07-11 14:33:27 +02:00
6780950257 Added run_after integration test 2025-07-11 13:53:12 +02:00
23bbe0520c Added draft for graph generation 2025-07-11 07:40:41 +02:00
3c63936970 Different optimations 2025-07-11 05:29:06 +02:00
9fa39e5f25 Added graph functions 2025-07-11 05:28:19 +02:00
60ab31c623 Optimized inventory validation 2025-07-11 02:03:33 +02:00
d43fdc63ea Optimized inventory validator for wrong groups 2025-07-11 01:34:44 +02:00
6e32b20240 Finished new role identification system implementation 2025-07-11 00:42:36 +02:00
1f4dee49bc Solved last open tests 2025-07-10 23:19:44 +02:00
dca04540d4 Solved relative path bug 2025-07-10 22:50:52 +02:00
c160c58a5c Restructured CLI logic 2025-07-10 21:26:44 +02:00
74ebb375d0 Added invokable paths for role categories 2025-07-10 18:28:39 +02:00