Michael Hoang
|
b46ae13453
|
cli: fix machines update not outputting stdout of nixos-rebuild
|
2025-05-10 17:02:56 +10:00 |
|
Qubasa
|
01f9bb358e
|
clan-cli: Use machine object everywhere instead of name + flake
|
2025-05-09 13:13:14 +02:00 |
|
Qubasa
|
5f7b95ac73
|
clan-cli: remove useless run_no_stdout function
|
2025-05-08 12:30:16 +02:00 |
|
Qubasa
|
89decdaf7e
|
clan-cli: Refactor the API to use the Flake object
|
2025-05-07 16:43:50 +00:00 |
|
Jörg Thalheim
|
1037bd115b
|
Revert "Merge pull request 'clan-cli: Refactor the API to use the Flake object' (#3531) from Qubasa/clan-core:replace_machine_name_with_machine_obj into main"
This reverts commit c09618b323, reversing
changes made to 45b2539455.
|
2025-05-07 15:24:57 +02:00 |
|
Qubasa
|
a6a69bb09b
|
clan-cli: Refactor the API to use the Flake object
|
2025-05-07 13:12:48 +02:00 |
|
Johannes Kirschbauer
|
f0d42c839b
|
Refactor(machine/class): use frozen dataclass for class 'machine'
|
2025-05-06 17:12:52 +02:00 |
|
Johannes Kirschbauer
|
79a54616e5
|
Refactor(machine/install): don't mutate the machine class during installation
|
2025-05-06 17:09:37 +02:00 |
|
Johannes Kirschbauer
|
d8883db24d
|
Refactor(machine/update): cleanup dataflow and logic conditions to be intuitive
|
2025-05-06 16:49:32 +02:00 |
|
Mic92
|
ec5c87c47c
|
Merge pull request 'Host: actual setup ssh controlmaster' (#3515) from fix-control-master into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3515
|
2025-05-06 11:21:05 +00:00 |
|
Jörg Thalheim
|
f3c673d165
|
only apply ssh control master to local ssh connection
|
2025-05-06 13:11:30 +02:00 |
|
Jörg Thalheim
|
5846f5d63a
|
Host: actual setup ssh controlmaster
before we were not entering the context manager
|
2025-05-06 13:11:30 +02:00 |
|
Johannes Kirschbauer
|
19dbab01d7
|
chore(API): cleanup remove unnused functions
|
2025-05-06 12:29:11 +02:00 |
|
Jörg Thalheim
|
28227e8b0a
|
fix build_host set if it doesn't exist
|
2025-05-06 09:56:58 +02:00 |
|
Mic92
|
1d1b7c73b5
|
Merge pull request 'fix incorrect target host when build host is set' (#3511) from ssh-foo into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3511
|
2025-05-06 07:54:40 +00:00 |
|
Jörg Thalheim
|
e8d2ae2d7e
|
fix incorrect target host when build host is set
|
2025-05-06 09:54:08 +02:00 |
|
Jörg Thalheim
|
19947c6d6b
|
fix incorrect target host when build host is set
|
2025-05-06 09:26:59 +02:00 |
|
Qubasa
|
b90812ecce
|
clan-cli: add test_create in clan_lib test folder
|
2025-05-05 22:16:02 +02:00 |
|
Jörg Thalheim
|
be79d75c08
|
bind ssh controlmaster to live time of CLI
|
2025-05-04 16:28:14 +02:00 |
|
Jörg Thalheim
|
9af16037a2
|
Revert "Merge pull request 'Fix deploying with sudo + password' (#3470) from target-host into main"
This reverts commit fbc0f9cde5, reversing
changes made to b47c25c620.
|
2025-05-04 13:37:39 +02:00 |
|
Jörg Thalheim
|
28c06bbdc1
|
update: fix sudo password prompt
|
2025-05-04 10:51:49 +02:00 |
|
Jörg Thalheim
|
d98c01bc3a
|
update_hardware_config: use host.run rather than adhoc ssh command
|
2025-05-04 10:30:46 +02:00 |
|
pinpox
|
938dc5b155
|
Set terminal on nix flake update/archive
When using resident SSH-keys (-sk), e.g. from a Yubikey that require a
Pin, a terminal is needed to be able to enter it during deployment.
|
2025-05-02 15:41:29 +02:00 |
|
Jörg Thalheim
|
22608dd0c2
|
correct capitilization for targetHost in error message
|
2025-05-01 15:11:05 +02:00 |
|
DavHau
|
02ca5bd870
|
gui: make update machine work
Also fix error when age plugins not defined
|
2025-04-30 15:28:49 +07:00 |
|
Johannes Kirschbauer
|
f67bf3c940
|
Fix(clan_lib.api): fix cyclic import problem for api schema export
|
2025-04-26 20:19:23 +02:00 |
|
Johannes Kirschbauer
|
f6628ec1a9
|
Refactor(clan_lib): move clan_cli.api into clan_lib.api
|
2025-04-26 19:51:35 +02:00 |
|
Qubasa
|
f1a7f2aa69
|
clan-cli: Expose private_key to Machine class, in the future we should merge Machine and Host class
|
2025-04-25 13:38:03 +02:00 |
|
Johannes Kirschbauer
|
9b96f87160
|
Chore(clan/clan_uri): Remove ClanURI class from clan_cli
|
2025-04-23 16:53:11 +02:00 |
|
Michael Hoang
|
d663744f40
|
cli/machines: don't allow installing on macOS
|
2025-04-23 03:13:39 +10:00 |
|
Jörg Thalheim
|
c00ca85bc7
|
drop unused machine_get_fact
|
2025-04-22 18:20:35 +02:00 |
|
Jörg Thalheim
|
3ac1907201
|
use machine.{secrets,public}_{vars,fact}_store everywhere
|
2025-04-22 18:20:35 +02:00 |
|
Michael Hoang
|
5eae0c65d8
|
cli: support updating nix-darwin machines
|
2025-04-22 23:39:47 +10:00 |
|
Michael Hoang
|
3151d4ba86
|
cli: only use sudo when deploying locally
|
2025-04-22 23:14:03 +10:00 |
|
Michael Hoang
|
2768d959e7
|
cli: use sudo consistently when running nixos-rebuild switch
|
2025-04-22 23:14:03 +10:00 |
|
Michael Hoang
|
f336f6514c
|
Back out "cli: don't update macOS machines"
This backs out commit 83a2de0f47.
|
2025-04-22 23:14:03 +10:00 |
|
Jörg Thalheim
|
f69bfa7ea9
|
Machines: remove unused method argument from self.nix()
|
2025-04-21 15:18:14 +02:00 |
|
Jörg Thalheim
|
723d72255c
|
Reapply "remove nix_shell_legacy"
This reverts commit c5001f19fc.
|
2025-04-21 13:23:50 +02:00 |
|
Johannes Kirschbauer
|
8efdfc6da1
|
chore(select/cache): rename 'prefetch' to 'invalidate_cache'
|
2025-04-20 13:34:52 +02:00 |
|
Johannes Kirschbauer
|
c5001f19fc
|
Revert "remove nix_shell_legacy"
This reverts commit f3512b853a.
|
2025-04-18 14:49:54 +02:00 |
|
Jörg Thalheim
|
f3512b853a
|
remove nix_shell_legacy
|
2025-04-16 21:03:58 +02:00 |
|
Jörg Thalheim
|
837789010e
|
rename nix_shell_legacy to nix_shell and run_cmd to nix_shell
Than it's more obvious that we need to migrate.
|
2025-04-16 18:27:01 +00:00 |
|
Jörg Thalheim
|
4d4882ac7b
|
update_hardware_config: migrate from nix_shell to run_cmd
|
2025-04-16 19:32:40 +02:00 |
|
Michael Hoang
|
fc7a4d2b75
|
machines: fix nixos-rebuild not getting retried
|
2025-04-15 16:16:03 +02:00 |
|
lassulus
|
99238ff7d6
|
clan_cli machines update: cache values for faster eval
|
2025-04-14 14:28:59 +02:00 |
|
Michael Hoang
|
866dafab9d
|
machines: minor refactor of update
|
2025-04-13 18:14:17 +02:00 |
|
Johannes Kirschbauer
|
61d1cf32ab
|
chore(clan/pytest): discover all test files in the tree
|
2025-04-09 18:54:57 +02:00 |
|
Johannes Kirschbauer
|
872aa8e5b6
|
fix(clan/machines): move machineClass attribute selector and add a unit test for class detection
|
2025-04-09 18:29:43 +02:00 |
|
Jörg Thalheim
|
326633d1b8
|
hardware: only include sshpass if we are actually using it.
|
2025-04-09 09:52:56 +00:00 |
|
Michael Hoang
|
83a2de0f47
|
cli: don't update macOS machines
|
2025-04-08 08:53:29 +02:00 |
|