Jörg Thalheim
450afb883a
f2fs: enable compression
2024-09-20 15:52:11 +00:00
clan-bot
5dc01b6213
Merge pull request 'docs: Rename guides to manual, Rename reference to options, add secure boot chapter to manual. Add secrets chapter to manual.' ( #2154 ) from Qubasa/clan-core:main into main
2024-09-20 14:59:42 +00:00
Qubasa
036cd710e1
docs: Rename guides to manual, Rename reference to options, add secure boot chapter to manual. Add secrets chapter to manual.
2024-09-20 16:52:52 +02:00
clan-bot
2f50ccc77f
Merge pull request 'vars/sops: improve shared secrets, switching backend' ( #2151 ) from DavHau/clan-core:DavHau-vars-migration into main
2024-09-20 13:18:01 +00:00
DavHau
e49d1f0127
vars/sops: improve shared secrets, switching backend
...
When a second machine checks for a shared secret, now the exists() call returns negative and only when updating the secrets for that machine, the machine is added to the sops receivers.
Also throw proper errors when the user switches backends without cleaning the files first.
2024-09-20 15:06:54 +02:00
Mic92
77ac85df57
Merge pull request 'rename hw-generate to update-hardware-config' ( #2150 ) from rename-update-hardware-command into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2150
2024-09-20 12:13:39 +00:00
Jörg Thalheim
8a8b473236
rename hw-generate to update-hardware-config
2024-09-20 13:42:18 +02:00
clan-bot
8e1734345b
Merge pull request 'vars: implement migration' ( #2148 ) from DavHau/clan-core:DavHau-vars-migration into main
2024-09-19 16:04:39 +00:00
DavHau
0a8b7f38a8
vars: implement migration
...
Migrating generated files from the facts subsystem to the vars subsystem is now possible.
HowTo:
1. declare `clan.core.vars.generators.<generator>.migrateFact = my_service` where `my_service` refers to a service from `clan.core.facts.services`
2. run `clan vers generate your_machine` or `clan machines update your_machine`
Vars will only be migrated for a generator if:
1. The facts service specified via `migrateFact` does exist
2. None of the vars to generate exist yet
3. All public var names exist in the public facts store
4. All secret var names exist in the secret fact store
If the migration is deemed possible, the generator script will not be executed. Instead the files from the public or secret facts store are read and stored into the corresponding vars store
2024-09-19 17:57:03 +02:00
clan-bot
733c44b7b6
Merge pull request 'vars/generate: improve output when vars are updated' ( #2147 ) from DavHau/clan-core:DavHau-dave into main
2024-09-18 15:03:09 +00:00
DavHau
01c833f2bc
vars/generate: improve output when vars are updated
...
fixes #2076
- print old and new value if possible
- also inform the user if something hasn't changed
2024-09-18 16:57:01 +02:00
clan-bot
1f07469923
Merge pull request 'clanModules/state-version: use default of vars' ( #2146 ) from kenji/clan-core:kenji-modules/state-version into main
2024-09-18 12:16:34 +00:00
a-kenji
763554cf8a
clanModules/state-version: use default of vars
2024-09-18 14:07:30 +02:00
clan-bot
55cfea9285
Merge pull request 'Inventory: docs fixup' ( #2145 ) from hsjobeki/clan-core:hsjobeki-docs/inventory into main
2024-09-18 06:39:17 +00:00
clan-bot
11df6bb019
Merge pull request 'Inventory: fixup imports to extraModules' ( #2141 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-09-18 06:35:06 +00:00
Johannes Kirschbauer
9a24b1ee16
Inventory: docs fixup
2024-09-18 08:31:00 +02:00
Johannes Kirschbauer
9bee82d21e
Inventory: fixup imports to extraModules
2024-09-18 08:27:39 +02:00
clan-bot
c3d2e4a424
Merge pull request 'vars: allow setting a default for values' ( #2144 ) from DavHau/clan-core:DavHau-dave into main
2024-09-17 19:17:34 +00:00
DavHau
6fc27d402b
vars: allow setting a default for values
2024-09-17 21:11:38 +02:00
clan-bot
8cbbeca49e
Merge pull request 'vars: generate vars for clan install' ( #2143 ) from DavHau/clan-core:DavHau-dave into main
2024-09-17 18:47:56 +00:00
DavHau
4ce3cf16bb
vars: generate vars for clan install
...
fixes #2087
2024-09-17 20:41:39 +02:00
clan-bot
8b229522e6
Merge pull request 'vars: generate proper commit messages' ( #2142 ) from DavHau/clan-core:DavHau-dave into main
2024-09-17 18:29:00 +00:00
DavHau
bd79e6aef6
vars: generate proper commit messages
...
fixes #2126
2024-09-17 20:22:18 +02:00
clan-bot
6d18d9d4ae
Merge pull request 'docs/guides: add getting started guide to guides overview' ( #2140 ) from kenji/clan-core:kenji-update/guide into main
2024-09-16 21:35:17 +00:00
a-kenji
7cdbe83bc6
docs/guides: add getting started guide to guides overview
2024-09-16 23:21:02 +02:00
clan-bot
ba8e46fe7a
Merge pull request 'Inventory: docs improvements' ( #2132 ) from hsjobeki/clan-core:hsjobeki-inventory-docs into main
2024-09-16 20:58:28 +00:00
Johannes Kirschbauer
3721fc4340
Inventory: fix doc typo
2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
d4123a14d2
Inventory: fix eval tests
2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
72f79dee37
Inventory: docs improvements
2024-09-16 22:52:40 +02:00
kenji
8ccc695b92
Merge pull request 'docs: update readme for irc bridge' ( #2138 ) from kenji/clan-core:readme/update into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2138
2024-09-16 20:44:15 +00:00
a-kenji
fc9d5c1e51
docs: update readme for irc bridge
2024-09-16 20:44:15 +00:00
clan-bot
c55fa1b222
Merge pull request 'config: remove gitmodules file' ( #2136 ) from kenji/clan-core:kenji-config/rm/gitmodules into main
2024-09-16 20:17:39 +00:00
a-kenji
5b37f8feec
config: remove gitmodules file
2024-09-16 22:10:13 +02:00
clan-bot
04d0c0b0c1
Merge pull request 'vars/tests: fix nix eval triggering git concurrent access' ( #2135 ) from DavHau/clan-core:DavHau-dave into main
2024-09-16 17:34:25 +00:00
DavHau
51bf3187d7
vars/tests: fix nix eval triggering git concurrent access
...
Prevents this error: Another git process seems to be running in this repository
2024-09-16 18:58:22 +02:00
clan-bot
1695c571b9
Merge pull request 'clan-cli: Init clan machines import' ( #2134 ) from Qubasa/clan-core:Qubasa-main into main
2024-09-16 16:21:19 +00:00
Qubasa
e9bfb129a1
clan-cli: Init clan machines import
2024-09-16 18:15:55 +02:00
clan-bot
4254cf8ed0
Merge pull request 'templates: don't explicitly import hardware-configurations' ( #2133 ) from kenji/clan-core:kenji-templates/modernize/new-clan into main
2024-09-16 15:31:38 +00:00
a-kenji
60b68bc9bd
templates: don't explicitly import hardware-configurations
2024-09-16 17:21:50 +02:00
hsjobeki
5f6a2d227a
Merge pull request 'Inventory: improve usability from nix' ( #2116 ) from hsjobeki/clan-core:hsjobeki-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2116
2024-09-16 13:50:03 +00:00
Johannes Kirschbauer
97f4124e3b
Inventory: docs improvements
2024-09-16 13:50:03 +00:00
Johannes Kirschbauer
805d09cd61
Inventory: check extraModules serilizable
2024-09-16 13:50:03 +00:00
kenji
89cc77fa84
Merge pull request 'CLI: fix @api.register cli typechecks' ( #2127 ) from hsjobeki/clan-core:cli-api-typechecks into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2127
2024-09-16 12:52:28 +00:00
Johannes Kirschbauer
27768aa04b
Update: inventory classes check
2024-09-16 12:52:28 +00:00
Johannes Kirschbauer
dc57c3d948
CLI: api.register type preservation
2024-09-16 12:52:28 +00:00
Johannes Kirschbauer
f3a9a4e108
CLI: update classes
2024-09-16 12:52:28 +00:00
kenji
1db612df79
Merge pull request 'templates: new-clan use state-version module' ( #2129 ) from kenji/clan-core:kenji-template/fix/new-clan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2129
2024-09-16 12:45:47 +00:00
a-kenji
bffa9e264f
templates: new-clan use state-version module
2024-09-16 12:45:47 +00:00
kenji
be1952db4b
Merge pull request 'template/new-clan: improve documentation of disko module' ( #2130 ) from kenji/clan-core:kenji-template/docs/new-clan into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2130
2024-09-16 12:45:25 +00:00
a-kenji
45276d755f
template/new-clan: improve documentation of disko module
2024-09-16 12:45:25 +00:00