Sacha Korban
9bc3d808c1
clan-cli: machines install: add phases option for nixos-anywhere
2025-02-13 17:10:02 +11:00
Johannes Kirschbauer
048bd37e3b
Inventory: automatically create emtpy file on write
2025-02-10 09:02:23 +00:00
Johannes Kirschbauer
f380046050
CLI: machine create use patch inventory for partial updates
2025-02-10 09:02:23 +00:00
lassulus
2a8f40e91a
clan_cli machines: use Flake instead of FlakeId
2025-02-07 06:26:09 +01:00
Qubasa
bf26a2d306
clan-cli: Fix incorrect input handling in get_templates
2025-02-04 08:10:32 +00:00
Qubasa
825b4abd37
clan-cli: Make clan machines create use templating.py
2025-01-31 18:07:48 +07:00
Qubasa
0db5abf56a
clan-cli: Make clan flakes create discover templates from inputs. Add clan flakes list command
2025-01-30 16:24:50 +07:00
a-kenji
fa54c0f1b5
Fix various typos
2025-01-22 13:19:28 +01:00
Jörg Thalheim
6203b4f14f
clan/update: deploy_machine -> deploy_machines
2025-01-21 15:20:38 +01:00
Michael Hoang
7ee0e2afbf
vars: support secrets for partitioning the disk
2025-01-21 11:13:51 +00:00
Jörg Thalheim
8c667a162a
use nix flake archive in clan machines update for git+file flake inputs
2025-01-20 10:49:25 +01:00
Michael Hoang
f199030119
install: support -i flag for specifying SSH private key
2025-01-19 18:53:18 +11:00
Jörg Thalheim
cb8ca601e2
switch to nixos-facter for hardware-config
2025-01-15 13:59:49 +00:00
Qubasa
3d0b2948f3
docs: Add debugging.md and repo-layout.md guides
2025-01-09 13:01:49 +00:00
Johannes Kirschbauer
6403b42bb2
API: Disk templates, persist original values
2025-01-07 10:21:47 +01:00
Michael Hoang
1d7e0c1c02
install: upload vars needed for activation for installation
2024-12-22 05:53:26 +00:00
Michael Hoang
da4d7fa365
machines: don't build on target machine if remote builders can be used
2024-12-21 10:43:17 +11:00
DavHau
90a6d28f6c
machines update: remove unecessary special handling for non-path flakes
2024-12-20 19:23:25 +07:00
Qubasa
a452cc1a02
clan-cli: Fix clan install command and multiple other issues
2024-12-18 15:29:08 +01:00
a-kenji
6438e77519
pkgs/cli: Fix target_host for machines install
...
Use the correct `target_host`, if a user is defined.
Before the change:
```console
$ clan machines install
$ Install jon to 49.13.232.197? [y/N]
```
After the change:
```console
$ clan machines install
$ Install jon to root@49.13.232.197 ? [y/N]
```
Because root is the configured user for `target_host`, this is the
correct behavior.
2024-12-17 22:29:54 +01:00
Michael Hoang
7e16a1a268
clan_cli: always use --target-host if specified for machines install
2024-12-18 00:13:17 +11:00
Michael Hoang
a7f8613878
clan_cli: fix target_host when running clan machines install
2024-12-18 00:08:10 +11:00
Michael Hoang
60c2ca726a
clan-cli: don't list non-Clan NixOS configurations
2024-12-17 15:11:38 +11:00
lassulus
9cc3bdbc9f
vars: eval finalScript lazy
2024-12-14 13:38:51 +01:00
Qubasa
6b784f8623
clan-cli: Rework 'clan ssh' command, improve Tor support.
2024-12-13 00:11:18 +01:00
Qubasa
b9091beff9
clan-cli: Replace log.info to machine.info if applicable
2024-12-12 15:36:17 +01:00
clan-bot
0e65ec27a1
Merge pull request 'fix: Calculate a seperate delete delta for removed data' ( #2587 ) from hsjobeki/clan-core:fix/writeable into main
2024-12-10 20:26:45 +00:00
Johannes Kirschbauer
959ab140a6
Inventory: init delete patial data
2024-12-10 21:19:04 +01:00
Johannes Kirschbauer
096ddea270
Inventory: fix persistence
2024-12-10 16:41:40 +01:00
Johannes Kirschbauer
e9a45fa712
API: fix create machine should set machine description and other data
2024-12-10 15:17:41 +01:00
lassulus
998ff92b51
vars: remove intermediate classes
2024-12-10 14:04:31 +01:00
Qubasa
d388900a8e
clan-cli: Fix missing error propagation in deploy
2024-12-10 00:03:33 +01:00
Qubasa
65a5789c5b
clan-cli: Replace HostGroup and MachineGroup with generic AsyncRuntime class. Propagate cmd prefix over thread local. Close threads on CTRL+C
2024-12-09 18:07:23 +01:00
Johannes Kirschbauer
69b7f6be5b
inventory.{cli,api}: use only dictionaries
2024-12-06 18:51:20 +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
Jörg Thalheim
e2ed57f8dd
extract nix_test_store helper for sandbox builds
2024-12-05 11:38:58 +01:00
Johannes Kirschbauer
7b529855cd
api: create machine touch only the created machine
2024-12-04 17:44:56 +01:00
Jörg Thalheim
6247723c50
commit file instead of just git adding it
2024-12-04 12:14:32 +01:00
Jörg Thalheim
3452ca54e6
skip writing the empty inventory json
2024-12-04 12:14:32 +01:00
Jörg Thalheim
0b3816b6ec
clan/update: make build-host overridable in cli
2024-12-03 17:40:12 +01:00
Jörg Thalheim
760126d8d5
remove deprecated deploymentHost
2024-12-03 17:30:02 +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
Qubasa
570bceff4e
clan-cli: Fix ignored debug flag in clan vms run, refactor Host.run to use RunOpts
2024-12-03 16:01:51 +01:00
Johannes Kirschbauer
1768e44d51
api/machines: include disk and hw_config into machine details
2024-12-03 14:01:11 +01:00
DavHau
fbbfcc0aa5
vars: generate docs for cli and module
2024-11-29 17:23:31 +07:00
clan-bot
894e31f983
Merge pull request 'remove secretsUploadDirectory from common module' ( #2509 ) from lassulus/clan-core:no-secrets-upload-dir into main
2024-11-28 15:46:51 +00:00
lassulus
8337a3ec41
vars: remove secretsUploadDirectory from common module
2024-11-28 16:38:06 +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
3b7559e066
CLI: use new template path
2024-11-28 11:44:44 +01:00
Qubasa
80045a9af1
clan-cli: Add -L option to nixos-rebuild switch to still have build output, simplify logging code
2024-11-28 10:42:43 +01:00