Commit Graph

111 Commits

Author SHA1 Message Date
Qubasa
0123fcd3a5 clan-app: working js<->python api bridge 2025-01-06 20:14:20 +01:00
Johannes Kirschbauer
a42c758ab5 Serde: fix enum type conversion, ensure roundtrip stability 2025-01-03 16:31:25 +01:00
Johannes Kirschbauer
7d3b56d949 API/serde: remove broken list sorting in serializer 2024-12-28 16:18:09 +01:00
Johannes Kirschbauer
6a6e9c1c2c API: Display only local block devices, remote ones should be retrieved from hw-report 2024-12-20 18:09:39 +01:00
Johannes Kirschbauer
096ddea270 Inventory: fix persistence 2024-12-10 16:41:40 +01:00
Johannes Kirschbauer
7074e88355 serde: add suppport for converting sets 2024-12-10 15:17:41 +01:00
Johannes Kirschbauer
35ebc120c5 serde/fix: fix construction of typedDict 2024-12-06 19:02:35 +01:00
Johannes Kirschbauer
69b7f6be5b inventory.{cli,api}: use only dictionaries 2024-12-06 18:51:20 +01:00
Johannes Kirschbauer
900499ede8 API/serde: add support for TypedDict 2024-12-06 17:37:37 +01:00
Qubasa
daf8033c25 clan-cli: made run_no_stdout runOpts compatible and make time table thread safe 2024-12-06 12:18:28 +01:00
Johannes Kirschbauer
a032c446e1 inventory/api: prepare list merging 2024-12-06 11:07:52 +01:00
Jörg Thalheim
bbb2aca5cb rename run_no_output to run_no_stdout
we want stderr for some nix commands.
2024-12-03 17:15:28 +01:00
Johannes Kirschbauer
aa79f31664 api/modules: seperate frontmatter parsing from extraction 2024-12-03 14:01:00 +01:00
Johannes Kirschbauer
d1f624ad1f api/disk-templates: adopt directory structure from clan modules 2024-12-03 12:01:35 +01:00
lassulus
3ae82f3efc *: nix fmt 2024-12-02 15:14:40 +01:00
Johannes Kirschbauer
9c6582a197 Clan-api: disk schema: improve error messages for invalid options 2024-11-29 21:33:22 +01:00
Johannes Kirschbauer
1d566a47f4 Clan-api: init set disk_schema from facter report 2024-11-29 21:30:46 +01:00
hsjobeki
9201a29c1d revert 2031807acb
revert Clan-app: init single-disk template
2024-11-29 20:08:02 +00:00
Johannes Kirschbauer
2031807acb Clan-app: init single-disk template 2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
ff1164369a Clan-app/api: improve error message for mismatching types 2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
f5a6052f43 Clan-app/api: error on {unknown api method, mismatching parameter name} 2024-11-28 16:37:52 +01:00
Qubasa
1f98df96e3 clan-cli: cmd.run now has its options extracted to a dataclass 2024-11-28 15:26:37 +01:00
Johannes Kirschbauer
4e61df9601 API/serde: fix construction of Enum values 2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
0811dd8e3e API/serde: add handling for serializing enum classes 2024-11-26 10:44:06 +00:00
Johannes Kirschbauer
6a6306f7f0 Clan-cli/api: init dynamic get module interface 2024-11-22 13:58:30 +01:00
Johannes Kirschbauer
0e556302c1 Clan-cli/api: list external modules 2024-11-21 17:04:35 +01:00
Johannes Kirschbauer
3a46119722 Modules/api: export constraints, filter by inventory 2024-11-19 10:36:29 +01:00
Johannes Kirschbauer
722012ed55 Modules/constraints: init constraints checking for inventory compatible modules 2024-11-12 18:36:38 +01:00
DavHau
08fb34aa01 cli: set needs_user_terminal for all ssh commands 2024-10-23 19:40:50 +07:00
Johannes Kirschbauer
3bc2991903 Serde: fixup & tests after changed serialization 2024-10-18 12:42:35 +02:00
Johannes Kirschbauer
fe65362bb2 API/Modules-list: List only inventory modules 2024-10-17 10:27:00 +02:00
Johannes Kirschbauer
3cb2396d66 Serde: improve js-python bridge 2024-10-17 10:26:14 +02:00
Qubasa
2838e468a6 clan-cli: Fix bug where --host-key-check is not applied everywhere 2024-10-08 00:25:15 +00:00
Jörg Thalheim
1666513e91 Revert "Merge pull request 'Revert "Merge pull request 'clan-cli: secrets: Add support for PGP keys with sops-nix' (#2186) from lopter/clan-core:lo-sops-nix-pgp-support into main"' (#2202) from revert into main"
This reverts commit a5496e8db0, reversing
changes made to 9bb1aef245.
2024-10-04 16:36:35 +00:00
Jörg Thalheim
084ebf9edc Revert "Merge pull request 'clan-cli: secrets: Add support for PGP keys with sops-nix' (#2186) from lopter/clan-core:lo-sops-nix-pgp-support into main"
This reverts commit 5668fd05a0, reversing
changes made to dd17fbdc6d.

Reverting for now as Dave's recent change conflicts with this change.
2024-10-04 17:54:29 +02:00
Jörg Thalheim
160fe82576 fix serialisation of SopsKey type 2024-10-04 15:36:30 +00:00
Johannes Kirschbauer
536ae8701d Inventory/docs: display explizit roles only 2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
9a24b1ee16 Inventory: docs fixup 2024-09-18 08:31:00 +02:00
Johannes Kirschbauer
72f79dee37 Inventory: docs improvements 2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
dc57c3d948 CLI: api.register type preservation 2024-09-16 12:52:28 +00:00
Johannes Kirschbauer
813172119e API: rename set_inventory 2024-09-13 16:11:10 +02:00
Johannes Kirschbauer
ba548de2bf Serde: support deserialise Any typed values 2024-09-13 16:11:10 +02:00
Johannes Kirschbauer
e3d85fc2b8 API: type all services with dict[str,Any] in python to reduce complexity. 2024-09-12 16:19:51 +02:00
Johannes Kirschbauer
5da72f65c0 UI/iwd: wifi machine module 2024-09-04 15:22:34 +02:00
Jörg Thalheim
5ac3ac63c2 get rid of ValueError 2024-09-03 18:14:31 +02:00
Jörg Thalheim
29909e49d3 apply TRY lint 2024-09-03 18:13:46 +02:00
Johannes Kirschbauer
caad48682d serde/fix: round trip string sanitizing 2024-09-03 18:03:13 +02:00
Johannes Kirschbauer
facc0bd226 UI: Init iwd service for single wifi 2024-09-03 17:24:31 +02:00
Johannes Kirschbauer
4f80fab225 UI: Admin shh module 2024-09-03 10:57:01 +02:00
Johannes Kirschbauer
9eb56f274b API: types schema improve typescript performance 2024-09-02 18:03:44 +02:00