Commit Graph

4940 Commits

Author SHA1 Message Date
DavHau
0aa63e2e35 tests: minify test machines to decrease runtime 2024-11-13 20:40:01 +07:00
Johannes Kirschbauer
15492f12fa Assertions: Fixup dont render assertions into docs 2024-11-13 14:30:50 +01:00
Johannes Kirschbauer
2c50c891f9 Docs: read roles only from inventory modules 2024-11-13 14:14:50 +01:00
Johannes Kirschbauer
280878e30a Inventory/constraints: add id's to inventory constraints to make them more observable 2024-11-13 13:58:43 +01:00
Johannes Kirschbauer
527769e060 Zerotier/constraints: small improvements 2024-11-13 13:53:54 +01:00
Johannes Kirschbauer
8a5d99f6d2 Inventory/assertions: add seperate assertion layer 2024-11-13 13:52:47 +01:00
clan-bot
d57e043621 Merge pull request 'clan_cli vars: actually upload' (#2378) from lassulus/clan-core:vars-fix into main 2024-11-13 12:31:43 +00:00
lassulus
11ce774820 clan_cli vars: actually upload 2024-11-13 13:23:42 +01:00
Jörg Thalheim
cb6fefd694 cmd: also process stdin 2024-11-13 13:23:42 +01:00
lassulus
745af335ec cli machines update: run deploy directly if deploying single machine 2024-11-13 13:23:42 +01:00
lassulus
9f7d46a536 core vars: remove default for dirs 2024-11-13 13:23:42 +01:00
clan-bot
3a8878430b Merge pull request 'vars: allow re-encrypting secrets when recipient keys were added.' (#2397) from DavHau/clan-core:DavHau-dave into main 2024-11-13 11:55:24 +00:00
DavHau
54b8f5904e vars: allow re-encrypting secrets when recipient keys were added.
When the users of a secret change, when for example a new admin user is added, an error will be thrown when generating vars, prompting the user to pass --fix to re-encrypt the secrets
2024-11-13 18:49:30 +07:00
clan-bot
83b7c6d9a2 Merge pull request 'Chore: remove unsued inventory example' (#2392) from hsjobeki/clan-core:hsjobeki-main into main 2024-11-13 09:43:40 +00:00
Johannes Kirschbauer
a24bc87cb5 Chore: remove unsued inventory example 2024-11-13 09:18:24 +01:00
clan-bot
3822efc11b Merge pull request 'Modules/constraints: init constraints checking for inventory compatible modules' (#2391) from hsjobeki/clan-core:hsjobeki-main into main 2024-11-13 08:02:29 +00:00
Johannes Kirschbauer
f259157eb0 UI/modules: exclude typescript from dynamic field names and types 2024-11-13 08:57:03 +01:00
clan-bot
dcb51f68a1 Merge pull request 'vars,facts: update_check -> needs_upload' (#2383) from DavHau/clan-core:DavHau-dave into main 2024-11-13 06:41:50 +00:00
DavHau
236d9eaec3 vars,facts: update_check -> needs_upload 2024-11-13 13:34:15 +07:00
Johannes Kirschbauer
5b201856d1 UI/modules: dynamic rendering of public module interfaces 2024-11-12 22:10:37 +01:00
Johannes Kirschbauer
241db1cade Modules/constraints: init constraints checking for inventory compatible modules 2024-11-12 18:36:38 +01:00
Johannes Kirschbauer
53a8771c18 Zerotier: add to inventory test machine 2024-11-12 18:36:05 +01:00
Mic92
c7d754800a Merge pull request 'vars: fix case if we have two vars with where one is the prefix of another one' (#2390) from var-fix-get into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2390
2024-11-12 16:11:39 +00:00
Jörg Thalheim
8e4067ee03 vars: fix case if we have two vars with where one is the prefix of another one 2024-11-12 16:11:39 +00:00
Mic92
2039c652dc Merge pull request 'pkgs/cli: Add @override decorator' (#2385) from kenji/clan-core:kenji-cli/update/python-fixes into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2385
2024-11-12 15:14:55 +00:00
a-kenji
c0678885b5 pkgs/cli: Add @override decorator 2024-11-12 15:14:55 +00:00
Mic92
7fd01b009f Merge pull request 'clanModules/zerotier: Add assertion for moons' (#2389) from kenji/clan-core:kenji-zerotier-add-assertion into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2389
2024-11-12 15:14:38 +00:00
a-kenji
ddcf09d9e6 clanModules/zerotier: Add assertion for moons 2024-11-12 15:23:39 +01:00
clan-bot
4cba68f0fa Merge pull request 'pkgs/cli: Add tagging support to machines list' (#2388) from kenji/clan-core:kenji-cli/2374/machine-list-tags into main 2024-11-12 14:21:34 +00:00
a-kenji
fd4ba6d86f pkgs/cli: Document clan machines list --tags 2024-11-12 14:59:23 +01:00
a-kenji
f160de2722 pkgs/clan: machines list --tags add dynamic completer 2024-11-12 14:59:23 +01:00
a-kenji
8a6239e08d pkgs/cli: Add tagging support to machines list
Add the `--tags` flag to `clan machines list`
This now supports the machine tagging system from the inventory.

Multiple tags are the intersection of the tags of a specific machine.

Example two machines with overlapping tags:
```
server: ["intel"]
laptop: ["intel", "graphical"]
```

- `clan machines list --tags intel` will output:

```
server
laptop
```

- `clan machines list --tags intel graphical` will output:

```
laptop
```

- `clan machines list --tags graphical` will output:

```
laptop
```
2024-11-12 14:58:55 +01:00
clan-bot
642cb434c2 Merge pull request 'Chore: remove unused clanImports module' (#2387) from hsjobeki/clan-core:hsjobeki-main into main 2024-11-12 13:52:26 +00:00
Johannes Kirschbauer
959193fba1 Chore: fix export of machines clan schema 2024-11-12 14:46:26 +01:00
Johannes Kirschbauer
c7da3e165f Chore: remove unused clanImports module 2024-11-12 14:46:25 +01:00
clan-bot
24356d0fad Merge pull request 'jsonschema: Add exportfield for module internals' (#2382) from hsjobeki/clan-core:hsjobeki-main into main 2024-11-12 12:29:03 +00:00
Johannes Kirschbauer
b9ef080950 jsonschema: migrate tests 2024-11-12 13:23:31 +01:00
Johannes Kirschbauer
499bc4743b jsonschema: Add exportfield for module internals 2024-11-12 12:48:45 +01:00
clan-bot
90a2faf323 Merge pull request 'clan: Re-add pkgsForSystem to configsPerSystem too' (#2380) from Qubasa/clan-core:Qubasa-main into main 2024-11-11 16:27:28 +00:00
Qubasa
20f4ca2f63 clan: Re-add pkgsForSystem to configsPerSystem too 2024-11-11 23:20:27 +07:00
Mic92
23845c7d6d Merge pull request 'simplify reading hostPlaform.system from nixos' (#2377) from simplify-system into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2377
2024-11-11 15:33:14 +00:00
Jörg Thalheim
7cb296e717 simplify reading hostPlaform.system from nixos 2024-11-11 16:17:54 +01:00
clan-bot
cd6d585bea Merge pull request 'Revert "clan: Remove pkgsForSystem"' (#2376) from Qubasa/clan-core:Qubasa-main into main 2024-11-11 14:58:15 +00:00
Qubasa
49296133af Revert "clan: Remove pkgsForSystem"
This reverts commit 724913be90.
2024-11-11 21:50:25 +07:00
clan-bot
60b0ff04df Merge pull request 'clan-cli: Improved --debug output by indenting commands, add TRACE_DEPTH environment variable' (#2375) from Qubasa/clan-core:Qubasa-main into main 2024-11-11 14:36:56 +00:00
Qubasa
2df1179666 clan-cli: Improved --debug output by indenting commands, add TRACE_DEPTH environment variable 2024-11-11 21:23:53 +07:00
Luis Hebendanz
df2aa78745 Merge pull request 'Fixes for aarch64 support' (#2293) from Qubasa/clan-core:Qubasa-main into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2293
2024-11-11 14:08:12 +00:00
Qubasa
5d7b626ede clan-cli: Simplify hostPlatform and just use 'system' 2024-11-11 14:08:12 +00:00
Qubasa
fd9759d67a module.nix: add better explanation 2024-11-11 14:08:12 +00:00
Qubasa
a60a8ba6a4 clan-cli: Fix nixos-anywhere for systems that can not be build locally 2024-11-11 14:08:12 +00:00