Qubasa
4f6d25160f
Add --ssh-pubkey FILE argument
2024-05-14 15:41:15 +02:00
Qubasa
82fa89b57e
Fix template. Improve docu. Add disko as default imported module.
2024-05-10 15:39:46 +02:00
clan-bot
f2a3415e2c
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
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
DavHau
43c799c3d0
qga: add argument 'check'
2024-05-02 15:03:22 +02:00
Johannes Kirschbauer
bfe4f2c8f4
add cli docs generator
2024-04-30 19:01:53 +02:00
Johannes Kirschbauer
1051367ca4
add cli docs generator
2024-04-30 18:53:00 +02:00
Jörg Thalheim
b5653c169b
sops: fix setting secret from pipe
2024-04-30 14:04:49 +02:00
Jörg Thalheim
5606101ce8
sops: also log content type on error
2024-04-30 13:56:07 +02:00
a-kenji
f383c6f82d
clan-cli: add CLAN_DIR environment variable
...
Add the `CLAN_DIR` environment variable.
With this the user can specify the location of the clan.
2024-04-30 12:00:47 +02:00
a-kenji
95f93d8800
clan(help): standardise on machine capitalisation
2024-04-26 12:07:09 +02:00
a-kenji
a3f6996d69
clan(help): improve install description
2024-04-26 11:42:18 +02:00
DavHau
cf67de2f69
secrets: ensure all added/deleted files get committed
2024-04-24 17:26:32 +07: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
6becce81cb
clan: clan machines install use verbose flag
2024-04-19 16:38:39 +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
dcad0d0d79
include machine name when generating secrets
2024-04-15 22:17:53 +02: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
b3522b73aa
fix case when secrets are regenerated during update/install
2024-04-12 14:46:51 +02:00
DavHau
fc73301ed9
vms/run.py: refactor use kwargs instead of dataclass for function args
2024-04-09 14:30:46 +07:00
Qubasa
91dddc2281
Fix merge issue
2024-04-06 11:56:06 +02:00
Qubasa
a520116584
Improve documentation
2024-04-06 11:54:34 +02:00
Jörg Thalheim
818cc4d135
flash: expose mode option
2024-04-05 18:48:37 +02:00
Jörg Thalheim
f7077e3540
flash: improve prompt if no disk is specified
2024-04-03 12:00:02 +02:00
Jörg Thalheim
8b4dbc60b5
clan/install: drop -t flag from nixos-anywhere
2024-04-02 13:50:24 +02:00
a-kenji
9bb4c8d094
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
16ae51105e
cli/secrets: show hint in --help on how to retrieve a key
2024-04-02 14:36:01 +07:00
clan-bot
b10c4f5846
Merge pull request 'refactor clanCore.secrets -> clanCore.facts' ( #1040 ) from facts_refactor2 into main
2024-03-27 15:20:21 +00:00
lassulus
a8d35d37e7
refactor clanCore.secrets -> clanCore.facts
2024-03-27 16:03:16 +01: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
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
Jörg Thalheim
0e2cb172e6
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
270f906412
fix casing in facts generate logs
2024-03-25 15:33:57 +01:00
Jörg Thalheim
a886fd9b2d
switch back to upstream waypipe
2024-03-25 13:34:02 +01:00
Jörg Thalheim
0fa36252c2
re-encrypt secrets after rotating users/machines keys
2024-03-25 12:34:29 +01:00
Jörg Thalheim
cd9db02db0
add hint to use --force when a key already exists
2024-03-25 11:06:20 +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
539df08706
backups: skip preRestore and postRestore if not specified by a service
2024-03-20 09:32:01 +01:00
Jörg Thalheim
aa659bcc17
backups: no longer interpret backup interface as bash commands
2024-03-20 09:32:01 +01:00
Jörg Thalheim
92ac151292
rework backup interface to no longer need to list backups to restore them
2024-03-20 09:32:01 +01:00