Commit Graph

13 Commits

Author SHA1 Message Date
pinpox
d9b3587ed3 migrate state-version 2025-06-16 11:28:35 +02:00
Jörg Thalheim
a1a515e6d9 state-version: fix default of config.system.stateVersion
fixes https://git.clan.lol/clan/clan-core/issues/3360
2025-04-21 15:37:22 +00:00
RTUnreal
3f4ff94af6 clanModules: fix shellcheck errors 2025-04-09 19:44:00 +02:00
a-kenji
28e6d70c0d clanModules/state-version: Remove trailing newlines
The state version is now matched against certain regex rules.
We strip possible trailing newlines to improve compatibility.
2025-02-15 16:29:07 +07:00
Johannes Kirschbauer
978c3c21d4 Inventory/modules: use explicit roles only 2024-10-02 10:01:44 +02:00
a-kenji
763554cf8a clanModules/state-version: use default of vars 2024-09-18 14:07:30 +02:00
Johannes Kirschbauer
72f79dee37 Inventory: docs improvements 2024-09-16 22:52:40 +02:00
a-kenji
df2b51c1aa clanModules/state-version: improve documentation 2024-09-14 20:33:40 +02:00
a-kenji
3a10d9c057 clanModules/state-version: improve documentation 2024-09-14 20:00:25 +02:00
a-kenji
a7a14714f9 clanModules/state-version: initalize with currently set stateVersion
The `state-version` module will now initialize the `stateVersion` from
the currently set version.

This makes migrating to the `state-version` module seamless.
2024-09-14 19:25:20 +02:00
a-kenji
b3cec07cb4 clanModules/state-version: use echo -n 2024-09-13 13:54:21 +00:00
a-kenji
56ce3d625c clanModules/state-version: init state-version
This adds a clanModule that will initialize the `system.stateVersion`
upon deploying the machine for the first time.

If the machine is completely reinstalled, then the state version might be
regenerated. But care should be taken if rebuilding from backups.
2024-09-12 15:47:30 +02:00
a-kenji
6dd1a7395f vars: use correct paths for value accesses
Use correct paths for value accesses of vars under:

- `per-machine`
- `shared`
2024-09-11 19:02:43 +02:00