Johannes Kirschbauer
f65e92191a
Inventory: fix persistence
2024-12-10 16:41:40 +01:00
Johannes Kirschbauer
a3423130ed
API: fix create machine should set machine description and other data
2024-12-10 15:17:41 +01:00
Johannes Kirschbauer
b1ba74a27b
inventory.{cli,api}: use only dictionaries
2024-12-06 18:51:20 +01:00
Jörg Thalheim
7158f64800
commit file instead of just git adding it
2024-12-04 12:14:32 +01:00
Jörg Thalheim
6b8a9ff0dc
skip writing the empty inventory json
2024-12-04 12:14:32 +01:00
Qubasa
d2719f3179
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
Johannes Kirschbauer
5d78c7a01e
CLI: use new template path
2024-11-28 11:44:44 +01:00
Louis Opter
daf51f523e
clan-cli: secrets.sops: improve age keys detection
...
This change allows you to e.g. directly pass `$(age-keygen)` on the
command line.
2024-11-27 06:27:53 +00:00
a-kenji
1bc0b71155
pkgs/cli: Fix tag creation for clan machines create
2024-11-20 15:12:05 +01:00
a-kenji
464fb64f5f
pkgs/cli: Complete --tags flag
2024-11-11 13:48:00 +01:00
clan-bot
8c44d52d18
Merge pull request 'pkgs/cli: Fix help string of clan machines create' ( #2350 ) from kenji/clan-core:kenji-fix-naming-create into main
2024-11-10 13:21:53 +00:00
a-kenji
767859f3bf
pkgs/cli: Fix help string of clan machines create
2024-11-10 14:15:34 +01:00
a-kenji
ccb62254f2
pkgs/cli: Add --target-host to clan machines create
...
Add the `--target-host` flag to `clan machines create`.
This allows setting the `deploy.targetHost` for the newly created
machine via the inventory.
Closes : #2339
2024-11-10 14:13:39 +01:00
a-kenji
eb1cf50def
pkgs/cli: Improve tense of message in machines create
...
Change the log message tense from present to continuous for improved clarity.
The message "Add file" has been changed to "Adding file" to provide a clear
indication that the file addition is an ongoing process, not a
command (for the user).
2024-11-10 01:14:40 +01:00
a-kenji
ddda609b7c
pkgs/cli: Remove superfluous comment string
2024-11-10 00:35:41 +01:00
Jörg Thalheim
2a2818d050
add more custom prefixes for temporary directories
2024-10-01 20:54:19 +02:00
Qubasa
d4e8f88185
clan-cli: Move clan machines import to clan machines create
2024-09-23 17:11:48 +02:00
Johannes Kirschbauer
91a9fb23be
API: rename set_inventory
2024-09-13 16:11:10 +02:00
Jörg Thalheim
357b619068
add SIM lint
2024-09-02 16:39:30 +02:00
Jörg Thalheim
15ff74f7c2
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
af4b9cc2d5
make all same-module imports relative, the rest absolute
...
This makes sorting more consitent.
2024-09-02 13:00:19 +02:00
Johannes Kirschbauer
6158e82f43
Clan-app: refine create machine workflow via query operation
2024-08-06 16:04:21 +02:00
Johannes Kirschbauer
1d51ae5c85
Fix unit tests
2024-07-24 13:15:08 +02:00
Johannes Kirschbauer
d38983c784
Create machine: init view with api
2024-07-24 10:34:11 +02:00
Johannes Kirschbauer
07965598f5
Classgen: add mapped keys and more stuff
2024-07-18 21:58:36 +02:00
Jörg Thalheim
5b606c035f
move FlakeId to flake id
...
move FlakeId to flake id
2024-07-03 18:28:55 +02:00
Johannes Kirschbauer
d6493ed64d
API: tests for module instance update
2024-07-02 16:09:13 +02:00
Johannes Kirschbauer
f7c80834cb
Inventory persistence improves error resistance
2024-07-02 11:16:54 +02:00
Johannes Kirschbauer
9f484c1d39
API: migrate machines delete and list to inventory
2024-07-02 11:07:11 +02:00
Johannes Kirschbauer
df934334a2
API: migrate add machine to inventory
2024-07-01 21:55:42 +02:00
DavHau
07fb01d9db
tests: add test for creating machine on minimal clan
2024-06-09 21:54:04 -07:00
Johannes Kirschbauer
ab656d5655
API: handle functions with multiple arguments
2024-05-26 18:04:49 +02:00
Johannes Kirschbauer
ed171f0264
Api: init response envelop
2024-05-26 15:57:10 +02: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
Qubasa
00ef406713
Updated to main branch. Removed cluttering asyncio and httpx log messages
2023-10-27 23:36:45 +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
DavHau
2a11b1c5d1
machines api: always create empty settings.json
2023-09-02 18:29:12 +02:00
Jörg Thalheim
33b43ae146
add tests for machines api
2023-08-24 19:16:44 +02:00
Jörg Thalheim
c5b16124ef
add machine subcommand
2023-08-24 16:58:22 +02:00