Commit Graph

1080 Commits

Author SHA1 Message Date
Qubasa
d96ea61243 Secrets tests passing. nix fmt doesn't complain 2023-10-27 19:18:45 +02:00
Qubasa
1631dc631b Improved test logging with frame inspection 2023-10-27 19:18:45 +02:00
Qubasa
7bbadaa60f Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests 2023-10-27 19:18:45 +02:00
Qubasa
ecdd4949b7 Added new type FlakeName 2023-10-27 19:18:45 +02:00
Qubasa
f976121fa6 Added flake_name:str argument everywhere, nix fmt doesn't complain anymore 2023-10-27 19:15:40 +02:00
Qubasa
b09448ab6b Updated to main 2023-10-27 19:15:11 +02:00
Qubasa
2ad87785c0 Added state directory. 2023-10-27 19:11:27 +02:00
Qubasa
58b54bb9df API: Added Path validators. api/flake/create inits git repo. Fixed vscode interpreter problem 2023-10-27 19:11:27 +02:00
clan-bot
139fe6c834 Merge pull request 'move breakpoint checks out of default build' (#440) from Mic92-main into main 2023-10-27 15:42:28 +00:00
Jörg Thalheim
c2c9f7e33f extending machines documentation 2023-10-27 17:40:20 +02:00
Jörg Thalheim
f7e9d45ade improve output of installer iso
Now it also includes local addresses.
2023-10-27 17:40:20 +02:00
Jörg Thalheim
8daf0607c3 fix updating multiple machines 2023-10-27 17:40:20 +02:00
Jörg Thalheim
1b98be4fb7 move breakpoint checks out of default build
this allows to debug builds with breakpoints
2023-10-27 17:40:20 +02:00
clan-bot
8dc829a8a9 Merge pull request 'docs: fix clan create command' (#439) from Mic92-main into main 2023-10-27 12:30:32 +00:00
Jörg Thalheim
3af136b8ab cli/vms/create: fix trailing newlines in log output 2023-10-27 14:27:52 +02:00
Jörg Thalheim
1cf4df4d75 docs: fix clan create command 2023-10-27 13:28:34 +02:00
clan-bot
d26e657ee9 Merge pull request 'api/machines: split off config validation into separate endpoint' (#438) from DavHau-dave into main 2023-10-25 23:25:56 +00:00
DavHau
e6b13fd970 api/machines: split off config validation into separate endpoint
- This speeds up PUT /machines{name}/config as it doesn't do the expensive check anymore
- instead use PUT /machines/{name}/verify which allows a dry-run evaluation of a config which is passed without writing it to disk
2023-10-25 17:48:37 +01:00
clan-bot
c88431fb25 Merge pull request '/api/clan_modules: init' (#437) from DavHau-dave into main 2023-10-25 16:25:05 +00:00
DavHau
5eda240cb2 /api/clan_modules: init
- add GET /api/clan_modules entry point returning a list of modules available for import
2023-10-25 17:22:35 +01:00
clan-bot
713612fb37 Merge pull request 'api/machines: allow importing extra modules' (#436) from DavHau-dave into main 2023-10-25 15:39:00 +00:00
DavHau
cf0953146d api/machines: allow importing extra modules
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config

Still missing: get list of available modules
2023-10-25 16:36:30 +01:00
Mic92
3d0b9428a7 Merge pull request 'add container test driver' (#435) from container into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/435
2023-10-25 13:16:13 +00:00
Jörg Thalheim
1d336ed863 add container test driver 2023-10-25 13:16:13 +00:00
clan-bot
755c7f4620 Merge pull request 'PUT /machines/{name}/config; ensure is idempotent' (#434) from DavHau-dave into main 2023-10-24 17:50:51 +00:00
DavHau
607c52149f PUT /machines/{name}/config; ensure is idempotent 2023-10-24 18:48:14 +01:00
clan-bot
bbf832093b Merge pull request 'PUT api/machines/{name}/config: ensure only valid config is ever written' (#433) from DavHau-dave into main 2023-10-24 17:43:37 +00:00
DavHau
177be69eda PUT api/machines/{name}/config: ensure only valid config is ever written
- add CLAN_MACHINE_SETTINGS_FILE variable to temporarily override the machine settings file
- do a dry-run evaluation first with the new config before persisting it.
2023-10-24 18:40:48 +01:00
clan-bot
ef59b97c0c Merge pull request 'machines: add endpoint machines/{name}/ verify' (#432) from DavHau-dave into main 2023-10-24 15:34:05 +00:00
DavHau
f1e7495806 machines: add endpoint machines/{name}/ verify 2023-10-24 16:31:37 +01:00
clan-bot
3288185f66 Merge pull request 'clan config: refactor - reorder functions' (#431) from DavHau-dave into main 2023-10-24 14:35:34 +00:00
DavHau
6b36fc743c clan config: refactor - reorder functions 2023-10-24 15:27:19 +01:00
clan-bot
39b7963f74 Merge pull request 'clan-cli/shell.nix: rename repo_root -> source' (#429) from DavHau-dave into main 2023-10-23 15:20:15 +00:00
DavHau
ca8dcf8a7b clan-cli/shell.nix: rename repo_root -> source 2023-10-23 16:15:46 +01:00
clan-bot
b21be4dba5 Merge pull request 'Automatic flake update - 2023-10-23T00:00+00:00' (#428) from flake-update-2023-10-23 into main 2023-10-23 00:02:46 +00:00
Clan Merge Bot
353d87c6e1 update flake lock - 2023-10-23T00:00+00:00
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13)
  → 'github:nix-community/disko/4122a18340094151d7911e838237ec7627f0d0c5' (2023-10-22)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/51186b8012068c417dac7c31fb12861726577898' (2023-10-15)
  → 'github:Mic92/sops-nix/30a0ba4a20703b4bfe047fe5def1fc24978e322c' (2023-10-22)
2023-10-23 00:00:17 +00:00
clan-bot
d50b653903 Merge pull request 'Automatic flake update - 2023-10-16T00:00+00:00' (#427) from flake-update-2023-10-16 into main 2023-10-16 00:02:26 +00:00
Clan Merge Bot
f93cf42f8e update flake lock - 2023-10-16T00:00+00:00
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/cde886a1c97ef2399b4f91409db045785020291f' (2023-10-05)
  → 'github:nix-community/disko/6ad5c9c17cbd5514ce0cc2692dd82dd6d8e5d879' (2023-10-13)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/d7380c38d407eaf06d111832f4368ba3486b800e' (2023-10-08)
  → 'github:Mic92/sops-nix/51186b8012068c417dac7c31fb12861726577898' (2023-10-15)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/720bd006d855b08e60664e4683ccddb7a9ff614a' (2023-09-27)
  → 'github:numtide/treefmt-nix/aae39f64f5ecbe89792d05eacea5cb241891292a' (2023-10-15)
2023-10-16 00:00:17 +00:00
clan-bot
dfe16652ac Merge pull request 'machines/install: call correct upload function' (#426) from Mic92-main into main 2023-10-14 14:06:59 +00:00
Jörg Thalheim
0840eb5490 machines/install: call correct upload function 2023-10-14 15:56:04 +02:00
DavHau
13061ca1c6 Merge pull request 'vms.create: don't generate secrets if clan is remote' (#424) from lassulus-vm_generate into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/424
2023-10-11 10:10:26 +00:00
lassulus
b9208134f5 vms.create: don't generate secrets if clan is remote 2023-10-11 12:01:42 +02:00
clan-bot
ed247b7808 Merge pull request 'API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create' (#423) from Qubasa-main into main 2023-10-09 12:04:02 +00:00
Qubasa
942aa10a31 API: Added /api/flake/create. Fixed vscode search settings. Moved clan create to clan flake create 2023-10-09 14:01:34 +02:00
clan-bot
492923b65b Merge pull request 'Automatic flake update - 2023-10-09T00:00+00:00' (#422) from flake-update-2023-10-09 into main 2023-10-09 00:04:23 +00:00
Clan Merge Bot
c643a248ee update flake lock - 2023-10-09T00:00+00:00
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/646ee25c25fffee122a66282861f5f56ad3e0fd9' (2023-10-02)
  → 'github:nix-community/disko/cde886a1c97ef2399b4f91409db045785020291f' (2023-10-05)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/7f53fdb7bdc5bb237da7fefef12d099e4fd611ca' (2023-09-01)
  → 'github:hercules-ci/flake-parts/c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4' (2023-10-03)
• Updated input 'nixos-generators':
    'github:nix-community/nixos-generators/8ee78470029e641cddbd8721496da1316b47d3b4' (2023-09-04)
  → 'github:nix-community/nixos-generators/150f38bd1e09e20987feacb1b0d5991357532fb5' (2023-09-30)
• Updated input 'nixpkgs':
    'github:Mic92/nixpkgs/bc160df717ed1e9defe6044092ea66950976e3ed' (2023-09-26)
  → 'github:Mic92/nixpkgs/c3bd4f19ef0062d4462444aa413e26c917187ae9' (2023-09-30)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/2f375ed8702b0d8ee2430885059d5e7975e38f78' (2023-09-21)
  → 'github:Mic92/sops-nix/d7380c38d407eaf06d111832f4368ba3486b800e' (2023-10-08)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/e951529be2e7c669487de78f5aef8597bbae5fca' (2023-09-21)
  → 'github:numtide/treefmt-nix/720bd006d855b08e60664e4683ccddb7a9ff614a' (2023-09-27)
2023-10-09 00:00:16 +00:00
ui-asset-bot
f70eb609c7 update ui-assets.nix 2023-10-08 15:27:26 +00:00
clan-bot
505ec1b479 Merge pull request 'cleanup work' (#421) from chore/fixes into main 2023-10-08 15:26:08 +00:00
ui-asset-bot
c0e6aec41e update ui-assets.nix 2023-10-08 15:24:32 +00:00
clan-bot
438137a831 Merge pull request 'add coporate theme color variables' (#419) from feat/theme into main 2023-10-08 15:23:54 +00:00