Commit Graph

30 Commits

Author SHA1 Message Date
2e821c4525 clan-cli: add --json and --png flags to machine install
All checks were successful
buildbot/nix-build .#checks.x86_64-linux.matrix-synapse Build done.
buildbot/nix-build .#checks.x86_64-linux.package-merge-after-ci Build done.
buildbot/nix-build .#checks.x86_64-linux.package-clan-cli Build done.
buildbot/nix-build .#checks.x86_64-linux.nixos-test_install_machine Build done.
buildbot/nix-build .#checks.x86_64-linux.package-moonlight-sunshine-accept Build done.
buildbot/nix-build .#checks.x86_64-linux.package-pending-reviews Build done.
buildbot/nix-build .#checks.x86_64-linux.package-tea-create-pr Build done.
buildbot/nix-build .#checks.x86_64-linux.package-wayland-proxy-virtwl Build done.
buildbot/nix-build .#checks.x86_64-linux.package-zerotier-members Build done.
buildbot/nix-build .#checks.x86_64-linux.package-zerotierone Build done.
buildbot/nix-build .#checks.x86_64-linux.package-zt-tcp-relay Build done.
buildbot/nix-build .#checks.x86_64-linux.flash Build done.
buildbot/nix-build .#checks.x86_64-linux.nixos-test-backup Build done.
buildbot/nix-build .#checks.x86_64-linux.package-module-docs Build done.
buildbot/nix-build .#checks.x86_64-linux.lib-jsonschema-nix-unit-tests Build done.
buildbot/nix-build .#checks.x86_64-linux.package-function-schema Build done.
buildbot/nix-build .#checks.x86_64-linux.treefmt Build done.
buildbot/nix-build .#checks.x86_64-linux.renderClanOptions Build done.
buildbot/nix-build .#checks.x86_64-linux.package-module-schema Build done.
buildbot/nix-build .#checks.x86_64-linux.secrets Build done.
buildbot/nix-build .#checks.x86_64-linux.zt-tcp-relay Build done.
buildbot/nix-build .#checks.x86_64-linux.wayland-proxy-virtwl Build done.
buildbot/nix-build .#checks.x86_64-linux.nixos-installer Build done.
buildbot/nix-build .#checks.x86_64-linux.test-backups Build done.
buildbot/nix-build .#checks.x86_64-linux.package-install-iso Build done.
buildbot/nix-build .#checks.x86_64-linux.syncthing Build done.
buildbot/nix-build .#checks.x86_64-linux.test-installation Build done.
buildbot/nix-eval Build done.
checks / checks (pull_request) Successful in 2m36s
checks / checks-impure (pull_request) Successful in 1m59s
Allow using `clan machines [machine] install` in conjunction with the
`--json` and `--png` flags.

Fixes #1180
2024-05-07 14:47:13 +02:00
3c02453705 installer: fix qr code again
All checks were successful
checks / checks-impure (pull_request) Successful in 2m5s
checks / checks (pull_request) Successful in 4m38s
2024-04-22 21:04:41 +02:00
4ae5b24d24 installer: make qrcode compatible with nixos-images
All checks were successful
checks / checks (pull_request) Successful in 1m41s
checks / checks-impure (pull_request) Successful in 1m47s
2024-04-22 20:49:35 +02:00
9cb23b807c clan-cli ssh: fix qr code format
All checks were successful
checks / checks-impure (pull_request) Successful in 2m0s
checks / checks (pull_request) Successful in 4m30s
2024-04-22 20:21:44 +02:00
0a1cc29abf clan-cli ssh: --json can be file or str 2024-04-22 20:13:17 +02:00
e81a7415d8 clan: clan ssh fix password login
All checks were successful
checks / checks (pull_request) Successful in 2m47s
checks / checks-impure (pull_request) Successful in 1m47s
2024-04-17 21:45:14 +02:00
72811d0828 clan: clan ssh fix for new installer image
All checks were successful
checks / checks-impure (pull_request) Successful in 1m59s
checks / checks (pull_request) Successful in 4m36s
2024-04-17 18:20:40 +02:00
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
f385e0e037 refactor facts command to regenerate facts for all machines 2024-04-15 22:14:54 +02:00
fff810ed43 clan-cli: fix typos
All checks were successful
checks / checks (pull_request) Successful in 2m22s
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m45s
2024-04-12 17:40:54 +02:00
80abeef994 Revert "ssh: add interactive flag"
All checks were successful
checks / check-links (pull_request) Successful in 13s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 3m58s
This reverts commit c5db14dea8.
2024-03-26 13:13:35 +01:00
7b8a49bf6c ssh: default tty to False
Some checks failed
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Failing after 3m58s
nix behaves weird when the terminal is interactive because
we are also do line buffering.
2024-03-26 13:05:11 +01:00
c5db14dea8 ssh: add interactive flag 2024-03-26 12:51:46 +01:00
0e2cb172e6 cli/ssh: allocate tty by default
Some checks failed
checks / checks (pull_request) Failing after 1m52s
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m47s
-t is only enabled when the local ssh command is also connected to a tty,
so it seems to be enabled by default.
2024-03-26 12:07:15 +01:00
be3a75bbd7 add support for build machines 2024-02-06 17:21:42 +01:00
301a6b6a23 machines/update: get flake_attr from machine class 2024-02-06 17:21:42 +01:00
a2f0d077c8 remove unused ssh.run method 2024-02-06 15:47:32 +01:00
1496f45fe2 prefix nixpkgs# explicitly in nix_shell
All checks were successful
checks-impure / test (pull_request) Successful in 1m27s
checks / test (pull_request) Successful in 2m3s
This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
2023-12-08 15:14:14 +01:00
4fd84d1c48 disallow variable shadowing 2023-11-30 14:31:37 +01:00
f1b223d0a1 modernisation for python 3.11 2023-11-29 13:29:45 +00:00
26e3e3872c enable more linting 2023-11-29 13:29:45 +00:00
303df741e9 allow ipv6 addresses in deployment addresses
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m17s
2023-11-28 10:05:45 +01:00
b25af9f0f4 clan_cli: refactor secrets code into Machine class
All checks were successful
checks-impure / test (pull_request) Successful in 19s
checks / test (pull_request) Successful in 1m27s
2023-10-04 16:41:16 +02:00
89b7ffce6c clan-cli secrets upload: secrets are populated into tmpdir 2023-09-29 20:05:35 +02:00
16b33eb0a8 add toplevel machines-json that can deploy all hosts 2023-09-28 15:23:25 +02:00
dc51ca5803 factor out deployment address parsing into a function 2023-09-21 17:22:20 +02:00
b7212b9988 ruff: also enforce variable naming rules
All checks were successful
checks-impure / test (pull_request) Successful in 3s
checks / test (pull_request) Successful in 16s
2023-08-27 10:51:47 +02:00
a096d8ddcc clan-cli: add update command
All checks were successful
build / test (pull_request) Successful in 28s
2023-08-11 16:10:25 +02:00
b3a665cb19 clan-cli/ssh: rename Group -> HostGroup 2023-08-11 16:10:12 +02:00
8fea55da32 move ssh cli to cli submodule
Some checks failed
build / test (pull_request) Failing after 23s
2023-08-09 15:46:34 +02:00