Jörg Thalheim
c4d9b39a17
tests_secrets_generate: mark as pure
2025-08-15 12:51:20 +02:00
Jörg Thalheim
716b74bc02
test_machines_cli: remove more tests from the impure set
2025-08-14 17:14:35 +02:00
Mic92
3586b4f48c
Merge pull request 'clan-cli/machines/list: mark test as pure' ( #4761 ) from no-impure-machines into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4761
2025-08-14 14:59:10 +00:00
Jörg Thalheim
9cdc6a27b6
test_copy_from_nixstore_symlink: drop test.
...
seems a bit overkill to have a test for two lines of python code...
2025-08-14 16:53:39 +02:00
Jörg Thalheim
96014c02c5
clan-cli/templates: mark tests as pure
2025-08-14 16:35:25 +02:00
Jörg Thalheim
810a2c67f9
clan-cli/machines/list: mark test as pure
2025-08-14 16:33:21 +02:00
Jörg Thalheim
fbb28afb2f
clan-cli/flash: make tests runnable in sandbox
2025-08-14 16:23:22 +02:00
hsjobeki
a6ef38dadd
Merge pull request 'vars: move generator class and bound methods into seperate module' ( #4734 ) from generator-class into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4734
2025-08-14 14:17:14 +00:00
Jörg Thalheim
21e6a01cf3
machines/list: make tests pure
2025-08-14 15:54:00 +02:00
pinpox
35e5f4a42a
Remove clanModules
...
- Removes clanModules in favor of the new clanServices
- Adds a warning and link to the migration guide
2025-08-14 12:02:40 +02:00
Johannes Kirschbauer
4312e3fc2f
vars: move generator class and bound methods into seperate module
2025-08-14 11:05:42 +02:00
Johannes Kirschbauer
e28f280036
vars: remove unused conditional import
2025-08-13 19:24:53 +02:00
DavHau
72d3ad09a4
vars: refactor - pass Machine objects to run_generators
2025-08-13 12:45:47 +00:00
DavHau
a535450ec0
vars: refactor - unify get_generators and _get_closure
2025-08-13 12:45:47 +00:00
Mic92
d3b423328f
Merge pull request 'Add wireguard service module' ( #3354 ) from init-wireguard-service into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3354
2025-08-13 10:55:48 +00:00
Jörg Thalheim
1177e84dcc
vars/generate: print the files that were found when files are missing
...
this helps fixing typos in the generator scripts
2025-08-13 12:29:52 +02:00
DavHau
24194011ac
vars: refactor - remove unnecessary return values
...
The boolean return value signaling if anything was ran or not isn't that useful. We are not doing anything with it.
2025-08-13 12:54:05 +07:00
DavHau
068b5d4c1e
install: fix error message when target host not specified
2025-08-13 12:04:14 +07:00
Qubasa
980d94d47d
clan_cli: Improve cli message if no networks present
2025-08-13 12:04:14 +07:00
lassulus
a50b25eea2
clan-cli network: refactor, use new networking in ssh and install commands
2025-08-13 12:04:14 +07:00
lassulus
017989841d
refactor: remove DeployInfo class and use Network/Remote directly
...
- Remove DeployInfo class entirely, replacing with direct Remote usage
- Update parse_qr_json_to_networks to return dict with network and remote
- Refactor all code to work with Remote lists instead of DeployInfo
- Add get_remote_for_machine context manager for network connections
- Update tests to use new Network/Remote structure
2025-08-13 12:04:14 +07:00
lassulus
c14a5fcc69
refactor: move ssh/upload.py from cli to lib
...
Move the upload module to clan_lib to better organize SSH-related
utilities. Updated all imports across the codebase.
2025-08-13 12:04:14 +07:00
DavHau
5684ddf104
vars: health check also for API not just cli
2025-08-12 11:28:02 +00:00
DavHau
89cb22147c
Revert "machines update: support --target-host localhost"
...
This reverts commit a2818d4946cc66a08b9dd7a1ab95dc48ea708fe3.
Setting `--target-host localhost` breaks with:
sudo: no askpass program specified, try setting SUDO_ASKPASS
2025-08-12 17:39:40 +07:00
DavHau
1abdd45821
vars: add doc comments for fix() and health_check()
2025-08-12 09:13:54 +00:00
DavHau
e28b8dc944
vars: refactor - health checks on multiple generators
2025-08-12 13:12:49 +07:00
DavHau
26559ff88b
Merge pull request 'machines update: support --target-host localhost' ( #4623 ) from jfly/clan-core:localhost-as-target-host-without-ssh into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4623
2025-08-12 05:10:53 +00:00
Jörg Thalheim
d2814efcde
update: sort precached vars
2025-08-11 17:18:01 +02:00
DavHau
ee8e44d255
vars/generators: refactor - identify generators by name + machine
...
This brings us one step closer towards re-generating over multiple machines reliably
2025-08-11 21:02:55 +07:00
DavHau
073027f7c6
vars/generate: refactor - mark private as private
2025-08-11 11:46:25 +07:00
DavHau
d0374c0d7c
vars/keygen: add --no-interactive flags
...
This is useful to force on-interactive mode with automatic key selection. In unit tests this is necessary. When debugging a test on a real terminal interactive mode is not desired
2025-08-11 11:29:25 +07:00
Johannes Kirschbauer
31d3997358
Secrets: fix tests
2025-08-10 13:06:42 +02:00
Johannes Kirschbauer
62b748624d
Secrets: allow to generate additional keys with --new
2025-08-10 13:04:34 +02:00
Johannes Kirschbauer
29f440a482
Sops: generate key should always 'generate' a key pair when beeing called
...
Check if you want to generate a new key as a caller
2025-08-10 13:04:34 +02:00
Johannes Kirschbauer
454b09a67e
Vars: remove unused return
2025-08-10 00:19:08 +02:00
Johannes Kirschbauer
787781c2ad
Vars: remove spurious 'fake_prompt' with mocked method
2025-08-10 00:18:01 +02:00
Johannes Kirschbauer
91646b323a
API/generators: adjust filtering to match cli logic
2025-08-09 19:58:23 +02:00
Johannes Kirschbauer
d007b0f1b3
API/generators: expose display attribute of prompts
2025-08-09 19:56:23 +02:00
a-kenji
b6bccd218a
templates(flake-parts-minimal): Fix erroneous removal
2025-08-09 00:56:21 +02:00
Jeremy Fleischman
1129862293
machines update: support --target-host localhost
...
This is basically
<af7ce9b8ed >,
but with support for deploying locally.
This failed to install secrets to `/var/lib/sops-nix`. That's because
our `LocalHost` didn't have support for sudo yet. I fixed that.
2025-08-08 12:42:26 +00:00
Michael Hoang
2f2f3b6898
cli: fix missing newline in error message
2025-08-08 15:19:19 +10:00
hsjobeki
d0ebc75135
Merge pull request 'ui/install: hook up stepper store and api' ( #4626 ) from install-ui into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4626
2025-08-07 14:21:21 +00:00
Johannes Kirschbauer
40503306d1
cli/flash: fixup types
2025-08-07 16:09:36 +02:00
Johannes Kirschbauer
915178765b
Vars: rename classmethod to get_machine_generators
2025-08-07 15:31:17 +02:00
DavHau
8bafbcb295
machines update: use 'localhost' for local build
2025-08-06 19:06:20 +07:00
Jörg Thalheim
44dcfa7844
rename --fetch-local to --upload-inputs
2025-08-05 19:31:29 +02:00
DavHau
af7ce9b8ed
machines update: support local build
...
Now the user can pass `--build-host local`, to select the local machine as a build host, in which case no ssh is used.
This means the admin machine does not necessarily have ssh set up to itself, which was confusing for many users.
Also this makes it easier to re-use a well configured nix remote build setup which is only available on the local machine. Eg if `--build-host local` nix' defaults for remote builds on that machine will be utilized.
2025-08-05 13:16:59 +02:00
DavHau
b74193514d
ssh: refactor callers to use new Host interface
2025-08-05 13:16:59 +02:00
Luis Hebendanz
0b816a2672
Merge pull request 'Fix getting-started guide' ( #4545 ) from Qubasa/clan-core:migrate-dyndns into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4545
2025-08-01 08:30:09 +00:00
Qubasa
0b05b0b1ec
docs: review fixups
...
docs: review fixups
docs: review fixups
docs: fixup links in cli
docs: fixup links in cli
2025-08-01 14:53:31 +07:00