a-kenji
bd10720e5d
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
f7c2228f3f
include machine name when generating secrets
2024-04-15 22:17:53 +02:00
Jörg Thalheim
033e5194fb
refactor facts command to regenerate facts for all machines
2024-04-15 22:14:54 +02:00
a-kenji
719efee964
clan-cli: fix typos
2024-04-12 17:40:54 +02:00
Jörg Thalheim
448d752db1
fix case when secrets are regenerated during update/install
2024-04-12 14:46:51 +02:00
Johannes Kirschbauer
c9a93d3db7
docs: fix unsupported languages
2024-04-10 18:40:51 +02:00
DavHau
e389b86e91
vms/run.py: refactor use kwargs instead of dataclass for function args
2024-04-09 14:30:46 +07:00
Qubasa
0b570bc7a2
Fix merge issue
2024-04-06 11:56:06 +02:00
Qubasa
335156368b
Improve documentation
2024-04-06 11:54:34 +02:00
Jörg Thalheim
207225d5af
flash: expose mode option
2024-04-05 18:48:37 +02:00
Jörg Thalheim
3ad6d6b15e
flash: improve prompt if no disk is specified
2024-04-03 12:00:02 +02:00
Jörg Thalheim
9bbf2a745e
clan/install: drop -t flag from nixos-anywhere
2024-04-02 13:50:24 +02:00
a-kenji
250c0bb68d
clan-cli: add a check for the flatpak sandbox
...
Allows for differentiation between sandbox and non sandbox usage.
2024-04-02 12:19:48 +02:00
DavHau
83899aa054
cli/secrets: show hint in --help on how to retrieve a key
2024-04-02 14:36:01 +07:00
clan-bot
8e98cacc22
Merge pull request 'refactor clanCore.secrets -> clanCore.facts' ( #1040 ) from facts_refactor2 into main
2024-03-27 15:20:21 +00:00
lassulus
2893025f3f
refactor clanCore.secrets -> clanCore.facts
2024-03-27 16:03:16 +01:00
Qubasa
941bc49c1d
clan-cli: Fix tmpdir leak and fix tests/temporary_dir inconsistencies
2024-03-27 15:51:52 +01:00
Jörg Thalheim
e58b0f86aa
Revert "ssh: add interactive flag"
...
This reverts commit 4d8f76b861 .
2024-03-26 13:13:35 +01:00
Jörg Thalheim
7cb9f9b5e3
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
4d8f76b861
ssh: add interactive flag
2024-03-26 12:51:46 +01:00
Jörg Thalheim
27274d61c1
cli/ssh: allocate tty by default
...
-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
Jörg Thalheim
dad2d6781b
fix casing in facts generate logs
2024-03-25 15:33:57 +01:00
Jörg Thalheim
c59d9466b6
switch back to upstream waypipe
2024-03-25 13:34:02 +01:00
Jörg Thalheim
00704e9e55
re-encrypt secrets after rotating users/machines keys
2024-03-25 12:34:29 +01:00
Jörg Thalheim
a395d4a8fb
add hint to use --force when a key already exists
2024-03-25 11:06:20 +01:00
Qubasa
240af17c2f
select-shell: Fix breakage with previous shell.nix change
2024-03-25 00:32:03 +01:00
Qubasa
8dd6dc79cf
clan-vm-manager: devshell doesn't require clan-cli derivation
2024-03-24 23:52:30 +01:00
clan-bot
e737b4c56d
Merge pull request 'clan-vm-manager: Basic pytest framework established' ( #1026 ) from Qubasa-main into main
2024-03-24 22:41:07 +00:00
Qubasa
d6d8a88549
clan-vm-manager: Working pytest skeleton. clan-cli: Fixing devshell depending on itself
2024-03-24 23:36:00 +01:00
lassulus
8d34c51df2
refactor secrets & facts -> secret_facts & public_facts
2024-03-23 05:46:54 +01:00
Jörg Thalheim
c69a9e05a6
backups: skip preRestore and postRestore if not specified by a service
2024-03-20 09:32:01 +01:00
Jörg Thalheim
fa94ee4b96
backups: no longer interpret backup interface as bash commands
2024-03-20 09:32:01 +01:00
Jörg Thalheim
56760f0e8d
rework backup interface to no longer need to list backups to restore them
2024-03-20 09:32:01 +01:00
Jörg Thalheim
1136c2e16a
backups: don't export all local environment over ssh
2024-03-20 08:29:05 +00:00
Jörg Thalheim
8abc7acf60
make backup provider more generic
2024-03-20 08:29:05 +00:00
Jörg Thalheim
f9241448c5
nixos-install: also respect port
2024-03-17 22:18:22 +01:00
Jörg Thalheim
7412ae027e
allow to debug nixos-anywhere
2024-03-17 21:36:22 +01:00
Jörg Thalheim
36b788853a
drop secret store logging from install command
2024-03-17 21:32:23 +01:00
Jörg Thalheim
ede4d3f6e5
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Jörg Thalheim
6bcddae692
allow multi-line interactive secrets
2024-03-13 11:18:56 +01:00
a-kenji
dd0b5c0ae7
fix: typo
2024-03-12 17:37:19 +01:00
Qubasa
883c46bcaa
clan-cli: Readd mypy ignore clan_cli because of treefmt complaining
2024-03-10 16:06:03 +07:00
Qubasa
38699a8311
clan-cli: Add py.typed to make mypy work when used as library in clan-vm-manager
2024-03-10 15:18:18 +07:00
Qubasa
285a83ec97
clan_cli: Renamed ClanUrl to FlakeId
2024-03-08 23:47:27 +07:00
Qubasa
1b0f0bdd70
clan-vm-manager: Fix ClanUrl not pickable
2024-03-08 23:23:18 +07:00
Qubasa
93ca333227
clan_cli: Add TimeTable class to cmd.py. Fix bugs in Machine rewrite
2024-03-08 22:01:54 +07:00
Qubasa
fcb7a4b032
clan_vm_manager: Rewrite of Machine Class Part 1
2024-03-08 15:32:12 +07:00
Jörg Thalheim
83cbc18f66
treefmt
2024-03-07 14:13:11 +01:00
Jörg Thalheim
800bfd4653
add flash command
2024-03-07 14:13:11 +01:00
Jörg Thalheim
d84b5e7457
add confirmation prompt when installing
2024-03-07 14:13:11 +01:00