Commit Graph

51 Commits

Author SHA1 Message Date
Jörg Thalheim
f1b223d0a1 modernisation for python 3.11 2023-11-29 13:29:45 +00:00
Jörg Thalheim
26e3e3872c enable more linting 2023-11-29 13:29:45 +00:00
Jörg Thalheim
f3b3aba6c5 run_upload_secrets: don't swallow stdout output 2023-11-29 11:38:01 +01:00
Jörg Thalheim
977bbbbd59 install: fix secrets upload 2023-11-29 11:38:01 +01:00
lassulus
5640b84433 machines.update: remove redundant flake argument 2023-11-15 21:57:08 +01:00
lassulus
1ea13646ea clan_cli: flake_name -> flake_dir 2023-11-15 16:23:28 +01:00
DavHau
1652b5c27b api/machines: init put_machine replacing create_machine and set_machine_config
This allows creating and configuring a machine in one single step.
2023-11-13 20:25:52 +07:00
lassulus
7b3d3e20b4 clan-cli secrets: flake_name -> flake_dir 2023-11-05 16:58:48 +01:00
lassulus
17176f25de cli machines update: find flake dir automatic if not provided, support flake as path 2023-10-29 20:52:38 +01:00
Qubasa
00ef406713 Updated to main branch. Removed cluttering asyncio and httpx log messages 2023-10-27 23:36:45 +02:00
Qubasa
a28f910e35 nix fmt 2023-10-27 19:26:03 +02:00
Qubasa
3581e0c9a8 Fixing a multitude of tests 2023-10-27 19:21:50 +02:00
Qubasa
d02acbe04b nix fmt 2023-10-27 19:19:45 +02:00
Qubasa
af3f04736b Improved logging messages. Added ClanError if flake create or machine create already exist 2023-10-27 19:18:45 +02:00
Qubasa
8cc1c2c4bd Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests 2023-10-27 19:18:45 +02:00
Qubasa
2ca54afe7f Added new type FlakeName 2023-10-27 19:18:45 +02:00
Qubasa
32e60f5adc Added flake_name:str argument everywhere, nix fmt doesn't complain anymore 2023-10-27 19:15:40 +02:00
Qubasa
fdcd7ad1d9 Updated to main 2023-10-27 19:15:11 +02:00
Qubasa
711c70d1f0 Added state directory. 2023-10-27 19:11:27 +02:00
Jörg Thalheim
79e707b044 fix updating multiple machines 2023-10-27 17:40:20 +02:00
clan-bot
a650d9c341 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
c82a4df9f9 machines/install: call correct upload function 2023-10-14 15:56:04 +02:00
lassulus
4af74ee5a5 machines update: add --target-host 2023-10-04 23:28:15 +02:00
lassulus
3fb36b3ac1 secrets upload: skip on exit 23, cleanup 2023-10-04 21:29:19 +02:00
lassulus
b25af9f0f4 clan_cli: refactor secrets code into Machine class 2023-10-04 16:41:16 +02:00
lassulus
ffb7c63640 clan-cli: add machines install 2023-10-04 16:34:37 +02:00
Qubasa
af17c1bd7a Updated to main 2023-10-03 13:12:44 +02:00
lassulus
89b7ffce6c clan-cli secrets upload: secrets are populated into tmpdir 2023-09-29 20:05:35 +02:00
lassulus
7ca9c49163 restore clanInternals with valid nixos config 2023-09-29 19:39:35 +02:00
Jörg Thalheim
b366beeb2e fix secrets script not beeing fetched 2023-09-28 15:51:09 +02:00
Jörg Thalheim
16b33eb0a8 add toplevel machines-json that can deploy all hosts 2023-09-28 15:23:25 +02:00
Jörg Thalheim
3f814c1e5f clan update: fix deploymentAddress 2023-09-27 21:11:52 +02:00
Jörg Thalheim
756820e4ca clanInternals.machines: invert system and machine name 2023-09-27 17:26:44 +02:00
Jörg Thalheim
0314132a1a rewrite sops backend for secret generation and add tests 2023-09-21 17:22:20 +02:00
Jörg Thalheim
dc51ca5803 factor out deployment address parsing into a function 2023-09-21 17:22:20 +02:00
Jörg Thalheim
3cb916d50f clan-cli/update: also use correct flake attr for generating secret 2023-09-19 15:20:11 +02:00
Jörg Thalheim
2931b08b46 clan-cli/update: use correct flake attr when deploying 2023-09-19 14:19:48 +02:00
Jörg Thalheim
a65413c98e use experimental flags everywhere 2023-09-19 13:12:10 +02:00
lassulus
8d29d0e69c clan-cli: get deploymentAddress from clan.networking 2023-09-15 12:17:07 +00:00
lassulus
c5786614bf clan-cli secrets: deploy -> upload 2023-09-15 12:17:07 +00:00
lassulus
c487280ba9 clan-cli machines update: generate and deploy secrets 2023-09-15 12:17:07 +00:00
Jörg Thalheim
3b0701f275 deploy: use nix-flake-archive instead of rsync to upload 2023-09-15 12:17:07 +00:00
Jörg Thalheim
2d934d527a update: use run_local command to print executed command 2023-09-14 11:20:45 +02:00
Jörg Thalheim
b97db58316 deploy: use nix-flake-archive instead of rsync to upload 2023-09-13 20:33:53 +02:00
DavHau
a56073b051 machines delete: fix - delete all existing files 2023-09-02 18:37:40 +02:00
DavHau
2a11b1c5d1 machines api: always create empty settings.json 2023-09-02 18:29:12 +02:00
DavHau
8c7ee25dc9 webui: fixes for machines endpoint
- fix machines settings file location
- raise 404 if machine doesn't exist
- improve machine api test
2023-08-26 14:17:25 +02:00
Jörg Thalheim
33b43ae146 add tests for machines api 2023-08-24 19:16:44 +02:00
Jörg Thalheim
58adf91af8 test machine subcommand 2023-08-24 18:28:33 +02:00
Jörg Thalheim
c5b16124ef add machine subcommand 2023-08-24 16:58:22 +02:00