Qubasa
94b99034c9
clan-cli: Fix clan install command and multiple other issues
2024-12-18 15:29:08 +01:00
Qubasa
648d95b248
clan-cli: Make clan ssh automatically start tor
2024-12-17 12:13:18 +01:00
DavHau
907fab455a
ssh: improve parsing of ipv6 hostnames
2024-12-15 17:46:50 +07:00
Qubasa
e490207d12
clan-cli: Rework 'clan ssh' command, improve Tor support.
2024-12-13 00:11:18 +01:00
Qubasa
3cc7511764
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
Qubasa
164c621dc0
clan-cli: Fix ignored debug flag in clan vms run, refactor Host.run to use RunOpts
2024-12-03 16:01:51 +01:00
Qubasa
95cb239206
clan-cli: refactor HostGroup._run_local to work with RunOpts
2024-11-28 16:05:51 +01:00
Qubasa
d2719f3179
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
Qubasa
d29f9bf86c
clan-cli: SSH now completely refactored to use dataclasses everywhere
2024-11-28 10:52:14 +01:00
Qubasa
55e080a89f
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
Qubasa
fddaa3a5bb
clan-cli: Refactor colors to a subset of colors that work in light and dark mode
2024-11-27 12:42:10 +01:00
Qubasa
27b40849d1
clan-cli: Refactor ssh classes to dataclasses
2024-11-25 19:47:17 +01:00
Qubasa
8866a85765
clan-cli: Refactor ssh part 2, Refactor custom_logger
2024-11-22 22:08:50 +01:00
Qubasa
4104374b76
clan-cli: Refactor ssh folder part 1
2024-11-21 13:02:22 +01:00
Qubasa
250eed0798
clan-cli: upload.py -> Replace rsync with native ssh command
2024-11-15 22:03:47 +07:00
Jörg Thalheim
62a7f4b43f
don't show stacktrace if update fail
2024-11-08 15:43:10 +01:00
DavHau
82b3c901dc
ssh: fix ssh connections failing due to missing stdin
2024-10-28 17:56:12 +07:00
Jörg Thalheim
4230ae6750
ruff: enable warning lints
2024-10-23 09:06:02 +00:00
Jörg Thalheim
71e7ecd49c
improve terminating processes on error
2024-10-10 17:59:26 +02:00
Jörg Thalheim
d97bda9c0d
{vars,facts}/upload: fix ipv6 support
2024-10-10 17:03:32 +02:00
Jörg Thalheim
91d5741c97
properly support verbatim ipv6 addresses
2024-10-10 17:03:32 +02:00
Qubasa
528f9f9684
clan-cli: Fix breakage if machines update
2024-10-08 03:38:46 +02:00
Qubasa
5bd607a8ad
clan-cli: Fix bug where --host-key-check is not applied to build-host
2024-10-08 03:03:13 +02:00
Qubasa
e85e5c13e4
clan-cli: Fix bug where --host-key-check is not applied everywhere
2024-10-08 00:25:15 +00:00
Qubasa
7bd50b03b3
clan-cli: Add --host-key-check to machine update
2024-10-05 23:33:44 +02:00
Qubasa
34711c419c
clan-cli: Fix bug where --target_host is getting ignored
2024-10-05 18:51:44 +02:00
Jörg Thalheim
403b9cf2cc
apply TRY lint
2024-09-03 18:13:46 +02:00
Jörg Thalheim
357b619068
add SIM lint
2024-09-02 16:39:30 +02:00
Jörg Thalheim
ad3daa3ce4
add RET, Q, RSE lint
2024-09-02 15:58:49 +02:00
Jörg Thalheim
078cab47bf
add FA, ICN, ISC, LOG, PIE and PYI linting
2024-09-02 15:41:56 +02:00
Jörg Thalheim
15ff74f7c2
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
e9a266001c
enable comprehensions linting rules
2024-09-02 13:35:52 +02:00
Jörg Thalheim
35839ef701
enable bug-bear linting rules
2024-09-02 13:26:07 +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
Jörg Thalheim
0d6e2539e3
Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
...
This reverts commit 37e6ca7a30 .
2024-07-17 14:04:49 +02:00
DavHau
37e6ca7a30
clan-cli: deprecate nix_shell() in favor of run_cmd()
2024-07-16 14:03:17 +07:00
a-kenji
cd8ec83881
clan: ssh fix typos
2024-06-25 10:32:05 +02:00
a-kenji
2e821c4525
clan-cli: add --json and --png flags to machine install
...
Allow using `clan machines [machine] install` in conjunction with the
`--json` and `--png` flags.
Fixes #1180
2024-05-07 14:47:13 +02:00
lassulus
3c02453705
installer: fix qr code again
2024-04-22 21:04:41 +02:00
lassulus
4ae5b24d24
installer: make qrcode compatible with nixos-images
2024-04-22 20:49:35 +02:00
lassulus
9cb23b807c
clan-cli ssh: fix qr code format
2024-04-22 20:21:44 +02:00
lassulus
0a1cc29abf
clan-cli ssh: --json can be file or str
2024-04-22 20:13:17 +02:00
a-kenji
e81a7415d8
clan: clan ssh fix password login
2024-04-17 21:45:14 +02:00
a-kenji
72811d0828
clan: clan ssh fix for new installer image
2024-04-17 18:20:40 +02:00
a-kenji
498d29cca1
clan-cli: fix clan ssh --json and --png
...
This fixes `clan ssh` with the `--json` and `--png` flags.
It will now correctly use the actual fields that are present in the
generated json.
- probes if the ports are accessible
- if accessible will attempt a single ssh connection with the provided
password, in order to not spam ssh attempts
Fixes #1177
2024-04-17 10:12:37 +00:00
Jörg Thalheim
f385e0e037
refactor facts command to regenerate facts for all machines
2024-04-15 22:14:54 +02:00
a-kenji
fff810ed43
clan-cli: fix typos
2024-04-12 17:40:54 +02:00
Jörg Thalheim
80abeef994
Revert "ssh: add interactive flag"
...
This reverts commit c5db14dea8 .
2024-03-26 13:13:35 +01:00
Jörg Thalheim
7b8a49bf6c
ssh: default tty to False
...
nix behaves weird when the terminal is interactive because
we are also do line buffering.
2024-03-26 13:05:11 +01:00
Jörg Thalheim
c5db14dea8
ssh: add interactive flag
2024-03-26 12:51:46 +01:00