Commit Graph

133 Commits

Author SHA1 Message Date
a-kenji
578fc55e40 clan: facts generate allow regeneration of facts
Add `--regenerate` flag to `clan facts generate` which allows forcing
the generation of facts, regardless of their current existence.

Examples:
```
clan facts generate [MACHINE] --regenerate
```
or
```
clan facts generate [MACHINE] --service [SERVICE] --regenerate
```
2024-05-26 22:55:48 +02:00
clan-bot
6b15862f12 Merge pull request 'clan: facts generate specific service' (#1446) from a-kenji-feat/clan/facts-generate-service-1395 into main 2024-05-26 19:57:17 +00:00
a-kenji
4e87389a4d clan: facts generate specific service
Add `--service` flag to the `clan` cli which allows specifying a certain
service to be generated.

Example:

```
clan facts generate [MACHINE] --service [SERVICE]
```

Fixes #1395
2024-05-26 21:52:56 +02:00
Johannes Kirschbauer
2d9be0e603 API: handle functions with multiple arguments 2024-05-26 18:04:49 +02:00
Johannes Kirschbauer
5e266578ae Api: init response envelop 2024-05-26 15:57:10 +02:00
Johannes Kirschbauer
1dafa44ab8 api: convert name casing 2024-05-26 13:54:21 +02:00
Johannes Kirschbauer
27ecbca557 api: improve message serialisation 2024-05-26 13:40:47 +02:00
a-kenji
5d0a0762b3 clan machines list: reduce noise
Don't log nix error output by default on `clan machines list`.
Log it, if `--debug` is passed.

Fixes #1115
2024-05-24 12:55:14 +02:00
Johannes Kirschbauer
13678606e7 api: fix typing issues 2024-05-21 16:01:57 +02:00
Johannes Kirschbauer
53548eb56e clan ui: move print into log.debug statements 2024-05-20 19:59:50 +02:00
Johannes Kirschbauer
8d77525664 clan ui: setup typed api method 2024-05-20 19:34:49 +02:00
Qubasa
bae03fa338 Add --no-reboot flag to clan machine install 2024-05-14 15:41:15 +02:00
clan-bot
30a82d0a2f Merge pull request 'clan-cli: add --json and --png flags to machine install' (#1320) from a-kenji-feat/clan-install-json into main 2024-05-07 12:52:21 +00:00
a-kenji
c7e662806f 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
Johannes Kirschbauer
964625630e add cli docs generator 2024-04-30 18:53:00 +02:00
a-kenji
458a27cf1a clan(help): improve install description 2024-04-26 11:42:18 +02:00
a-kenji
b30bc64bee clan: clan machines install use verbose flag 2024-04-19 16:38:39 +02:00
Jörg Thalheim
033e5194fb refactor facts command to regenerate facts for all machines 2024-04-15 22:14:54 +02:00
Jörg Thalheim
448d752db1 fix case when secrets are regenerated during update/install 2024-04-12 14:46:51 +02:00
Jörg Thalheim
9bbf2a745e clan/install: drop -t flag from nixos-anywhere 2024-04-02 13:50:24 +02:00
lassulus
2893025f3f refactor clanCore.secrets -> clanCore.facts 2024-03-27 16:03:16 +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
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
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
d84b5e7457 add confirmation prompt when installing 2024-03-07 14:13:11 +01:00
Qubasa
1d72e4baa7 clan_vm_manager: Extracted VMObject to own component 2024-03-04 12:38:20 +07:00
lassulus
0dce19d031 clan-cli machines: cache machines_func via store 2024-03-02 11:20:05 +01:00
Qubasa
6de8393df1 clan_vm_manager: Fix qmp shutdown command, bad socket error on retried shutdown 2024-02-26 01:18:13 +07:00
Qubasa
e38aa7b73e clan_vm_manager: Improve VM start and stop switch. Switch will be disabled while stopping vm 2024-02-26 01:04:09 +07:00
clan-bot
e023d25b4b 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
023b9f4257 add option to set defaultGroups for secrets 2024-02-16 17:26:20 +01:00
Qubasa
8a0edddca7 clan-vm-manager: Fixing vm starting. 2024-02-16 16:10:49 +07:00
Qubasa
0b0867907e clan-vm-manager: Added clan icon to trayicon 2024-02-16 12:25:06 +07:00
Jörg Thalheim
90e9bc999e add file prefix for nix 2.19 or newer 2024-02-15 12:24:18 +01:00
lassulus
5ed4881687 vms: use vm fact/secret-store 2024-02-15 10:41:25 +01:00
lassulus
e3627c12f7 add factsStore modules 2024-02-15 10:41:25 +01:00
Qubasa
6d06742c49 clan_cli: Added lazy qmp 2024-02-13 16:44:09 +07:00
Qubasa
a1afd05fcb clan_cli: Made qmp implementation lazy 2024-02-13 16:44:09 +07:00
Qubasa
d54531e38c update flake lock 2024-02-12 14:52:01 +07:00
Qubasa
e30168742e clan_vm_manager: Added VM shutdown timeout 2024-02-12 14:16:44 +07:00
lassulus
a94201c1d0 allow passing of extra_config into machines 2024-02-11 08:40:41 +01:00
DavHau
a438a27c69 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
5afd5baeb2 add requireExplicitUpdate option for mobile devices 2024-02-06 17:55:34 +01:00