Qubasa
38c0233496
clan-cli: Fix user-password without user-prompt. Remove newlines from user-password and root-password. Improve test_generate_secret
2024-06-24 20:08:02 +02:00
Qubasa
eac869dde5
Fix run_vm test
...
nix fmt
2024-06-24 19:23:16 +02:00
Qubasa
88f97bd2b6
Fixed Contributing.md guide
2024-06-24 19:22:24 +02:00
Qubasa
8038a9b488
clan-cli: Add validity check for ssh
...
stash
2024-06-24 19:22:19 +02:00
Qubasa
1ff58adcef
clan-cli: Add validity check for age key generation
2024-06-21 15:07:53 +02:00
DavHau
313db5643f
refactor: rename clanCore -> clan.core
2024-06-18 18:32:40 +07:00
DavHau
6f18a5de92
test: extend minimal flake test with verification
2024-06-09 22:19:38 -07:00
DavHau
07fb01d9db
tests: add test for creating machine on minimal clan
2024-06-09 21:54:04 -07:00
Qubasa
5ff5b46896
clan-cli: temporary_home, set XDG_RUNTIME_DIR
2024-06-05 13:34:17 +02:00
Johannes Kirschbauer
133f2b705f
clan-core: add template to impure tests
2024-05-31 16:26:46 +00:00
Johannes Kirschbauer
83fe58e003
clan-core: add clan meta for ui usage
2024-05-31 16:26:46 +00:00
Jörg Thalheim
788eae432a
split list machines into show machine command
2024-05-31 16:56:09 +02:00
Jörg Thalheim
c1e2bc9ea9
make config command read-only
2024-05-29 13:17:55 +02:00
Jörg Thalheim
f0f97baa65
drop global argparse flags
...
They get shadowed by subargparser options.
2024-05-29 10:21:35 +02:00
Johannes Kirschbauer
f54c518fd7
api: fix breaking tests
2024-05-26 14:17:17 +02:00
Johannes Kirschbauer
3998efac78
fix: tests
2024-05-26 13:41:05 +02:00
DavHau
cf67de2f69
secrets: ensure all added/deleted files get committed
2024-04-24 17:26:32 +07: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
Qubasa
e6ad0cfbc1
clan-cli: Fix tmpdir leak and fix tests/temporary_dir inconsistencies
2024-03-27 15:51:52 +01:00
Jörg Thalheim
0fa36252c2
re-encrypt secrets after rotating users/machines keys
2024-03-25 12:34:29 +01:00
clan-bot
5fd4a63e17
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
8ab9d20342
clan-vm-manager: Working pytest skeleton. clan-cli: Fixing devshell depending on itself
2024-03-24 23:36:00 +01:00
lassulus
f16667e25a
refactor secrets & facts -> secret_facts & public_facts
2024-03-23 05:46:54 +01:00
Jörg Thalheim
e296a3019d
re-format with nixfmt
2024-03-17 19:48:49 +01:00
Qubasa
372e212c0c
clan_cli: Renamed ClanUrl to FlakeId
2024-03-08 23:47:27 +07:00
Qubasa
442e5b45ba
clan_cli: Simplify ClanURI
2024-03-07 19:04:48 +07:00
Qubasa
93c868a3b7
clan_cli: Rewrite ClanURI
2024-03-07 16:41:37 +07:00
Jörg Thalheim
0481746198
drop meshnamed from repository
...
It's not super useful and we can always add it back later if we need it.
2024-03-06 10:02:21 +01:00
Jörg Thalheim
a1e2a4f64a
secret cli: accept a pattern in secrets list
2024-02-22 14:21:53 +01:00
clan-bot
36b20f18d4
Merge pull request 'add option to set defaultGroups for secrets' ( #858 ) from Mic92-target_host into main
2024-02-16 16:29:28 +00:00
Jörg Thalheim
57e9b27ff8
add option to set defaultGroups for secrets
2024-02-16 17:26:20 +01:00
Qubasa
280bee0861
clan-vm-manager: Fixing vm starting.
2024-02-16 16:10:49 +07:00
Qubasa
4f7f34f9b4
clan-vm-manager: Added clan icon to trayicon
2024-02-16 12:25:06 +07:00
clan-bot
1cc6e74297
Merge pull request 'clan_vm_manager: --debug enables debug mode in clan_cli too' ( #840 ) from Qubasa-add_spinner into main
2024-02-14 08:43:14 +00:00
Qubasa
30850eef22
clan_cli: Added longer timeout for test
2024-02-14 15:40:03 +07:00
Jörg Thalheim
b15c21f800
drop check for /var/lib/nixos
2024-02-13 12:44:22 +01:00
Qubasa
03b9183e04
clan_cli: Added lazy qmp
2024-02-13 16:44:09 +07:00
Qubasa
92ec3fb9f9
test_vms_cli: Trying new way of testing
2024-02-13 16:44:09 +07:00
Qubasa
87dbc99cab
clan_cli: Made qmp implementation lazy
2024-02-13 16:44:09 +07:00
Qubasa
0ce8bcd018
clan_vm_manager: Added VM shutdown timeout
2024-02-12 14:16:44 +07:00
DavHau
02dd132e08
vms: init graceful shutdown for GUI
...
- add python modules for qemu protocols: QMP (hardware interactions) and QGA (guest service interaction)
- refactor state directory: remove name from path (already contains url)
- add impure vm test for basic qmp interaction
- simplify existing vm persistance test (factor out shared code)
- integrate graceful shutdown into GUI
the GUI integration still needs to be improved later:
- add fallback in case system doesn't react to powerdown button
- shutdown GUI switch fails if VM hasn't been started yet, and then remains in a wrong position
2024-02-09 19:55:18 +07:00
Jörg Thalheim
a2f0d077c8
remove unused ssh.run method
2024-02-06 15:47:32 +01:00
Jörg Thalheim
3538cf2e46
rename deployment address to target address
...
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
DavHau
56b6907740
qemu: init python modules for qmp and qga
2024-02-01 12:32:21 +07:00
DavHau
59fa63eba9
Reapply "vm-state: fix and improve testing"
...
This reverts commit 99092f6e76 .
vm-state: revert sysusers, improve testing
zerotier: enable persistence
vm-state: cleanup tests
2024-01-31 11:02:16 +07:00
DavHau
99092f6e76
Revert "vm-state: fix and improve testing"
...
This reverts commit 6adc68a354 .
2024-01-29 15:16:10 +07:00
DavHau
6adc68a354
vm-state: fix and improve testing
...
Also adds qemu qga protocol implementation to execute commands
2024-01-26 19:41:05 +07:00
lassulus
9cf670ee29
test_vm_persistance: substitute clan-core repo
2024-01-24 15:49:12 +01:00
lassulus
de885c3010
test_vm_persistance: add age keys
2024-01-24 15:49:12 +01:00