Qubasa
5967bb347c
clan-cli: Fix bug where --target_host is getting ignored
2024-10-05 18:51:44 +02:00
Jörg Thalheim
4826582547
add more custom prefixes for temporary directories
2024-10-01 20:54:19 +02:00
clan-bot
a57f409224
Merge pull request 'generate: don't set type=bool in argparse.BooleanOptionalAction' ( #2190 ) from fix-warning into main
2024-10-01 17:04:49 +00:00
Jörg Thalheim
f9a42831e4
start to name temporary directories in more places
2024-10-01 18:57:59 +02:00
Louis Opter
3f2bb2b958
Update outdated help messages and fix a typo
2024-09-29 15:52:58 +00:00
Jörg Thalheim
62af2bab55
fix broken eval check when nixpkgs.pkgs nixos option is used
2024-09-29 16:59:02 +02:00
Jörg Thalheim
9cf2bd4f6e
make default hardware report commit message nicer
2024-09-29 16:59:02 +02:00
Jörg Thalheim
bf7246104d
allow to overwrite hardware configuration
...
now that we call it "update" hardware configurration and we are heading
towards facter anyway, we don't need all the force overide logic. Just
allow this to be overwritten by default.
2024-09-29 16:59:02 +02:00
Jörg Thalheim
b4652539a5
wrap hardware generate arguments into an object
2024-09-29 16:59:02 +02:00
Jörg Thalheim
7816a3e639
don't expose polymorphic api
2024-09-29 16:21:53 +02:00
Jörg Thalheim
372a5f3907
remove unused location from ClanError
2024-09-29 16:21:53 +02:00
Jörg Thalheim
07e031f256
expose nixos-facter in cli
2024-09-29 16:21:53 +02:00
Jörg Thalheim
d0ed48284b
use packaged nixos-facter in generate_hardware_info
2024-09-24 11:38:33 +02:00
Qubasa
a27880a65e
clan-cli: Move clan machines import to clan machines create
2024-09-23 17:11:48 +02:00
Jörg Thalheim
8a8b473236
rename hw-generate to update-hardware-config
2024-09-20 13:42:18 +02:00
DavHau
0a8b7f38a8
vars: implement migration
...
Migrating generated files from the facts subsystem to the vars subsystem is now possible.
HowTo:
1. declare `clan.core.vars.generators.<generator>.migrateFact = my_service` where `my_service` refers to a service from `clan.core.facts.services`
2. run `clan vers generate your_machine` or `clan machines update your_machine`
Vars will only be migrated for a generator if:
1. The facts service specified via `migrateFact` does exist
2. None of the vars to generate exist yet
3. All public var names exist in the public facts store
4. All secret var names exist in the secret fact store
If the migration is deemed possible, the generator script will not be executed. Instead the files from the public or secret facts store are read and stored into the corresponding vars store
2024-09-19 17:57:03 +02:00
DavHau
4ce3cf16bb
vars: generate vars for clan install
...
fixes #2087
2024-09-17 20:41:39 +02:00
Qubasa
e9bfb129a1
clan-cli: Init clan machines import
2024-09-16 18:15:55 +02:00
Johannes Kirschbauer
dc57c3d948
CLI: api.register type preservation
2024-09-16 12:52:28 +00:00
Johannes Kirschbauer
813172119e
API: rename set_inventory
2024-09-13 16:11:10 +02:00
DavHau
3089296328
clan-cli: fix cyclic import problem
2024-09-06 15:38:12 +02:00
DavHau
5cd9960ed4
vars: improve generator execution pipeline
...
- ensure all dependents are re-generated as well
- refactor: separate out computation of generator update closure
2024-09-06 14:30:49 +02:00
Jörg Thalheim
29909e49d3
apply TRY lint
2024-09-03 18:13:46 +02:00
Johannes Kirschbauer
e4f077f2e2
Fix cyclic imports: __init__.py are automatically imported
2024-09-03 17:24:31 +02:00
Jörg Thalheim
ddd2a1a4f7
only accept eval/build for nix command
2024-09-03 10:49:53 +02:00
Jörg Thalheim
1fa0e72bea
use pathlib everywhere
2024-09-02 18:26:13 +02:00
Jörg Thalheim
483d8ce521
add SIM lint
2024-09-02 16:39:30 +02:00
Jörg Thalheim
cb16cda3fa
add RET, Q, RSE lint
2024-09-02 15:58:49 +02:00
Johannes Kirschbauer
c2d088b245
UI: AdminSettings page
2024-09-02 15:08:36 +02:00
Jörg Thalheim
e150b37fb8
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
22d6e5e153
enable comprehensions linting rules
2024-09-02 13:35:52 +02:00
Jörg Thalheim
109d1faf9e
enable bug-bear linting rules
2024-09-02 13:26:07 +02:00
Jörg Thalheim
b313f2d066
make all same-module imports relative, the rest absolute
...
This makes sorting more consitent.
2024-09-02 13:00:19 +02:00
Johannes Kirschbauer
41141c0483
API: fix online check
2024-08-26 18:00:41 +02:00
Johannes Kirschbauer
a0307a29b8
CLI: add option to generate facter.json
2024-08-26 09:05:01 +02:00
Jörg Thalheim
de34e058f6
hw-generate: don't load nixos-install-tools on local machine
...
We only need this on the target. Our installer have it already.
2024-08-24 12:07:22 +02:00
Jörg Thalheim
7ba0966da3
hw-generate: fix args
2024-08-24 12:07:22 +02:00
Jörg Thalheim
96321123d7
correct error message about allowed hostnames
2024-08-24 11:30:26 +02:00
Johannes Kirschbauer
1e766feb40
API: prepare hw_generate for facter
2024-08-23 11:13:06 +02:00
Johannes Kirschbauer
b0d57cbdf5
API: hw_generate commit generated config
2024-08-22 16:11:08 +02:00
Johannes Kirschbauer
2d119ae750
Clan-app: generate hw report
2024-08-22 15:57:00 +02:00
Johannes Kirschbauer
9a222d62a7
API: init set_machine
2024-08-21 15:29:08 +02:00
Jörg Thalheim
30bbb142e2
Merge remote-tracking branch 'origin/main' into rework-installation
2024-08-21 13:38:04 +02:00
Johannes Kirschbauer
cabdbe5ecd
Clan-app: connection check & show remote devices
2024-08-20 09:53:15 +02:00
Johannes Kirschbauer
02662867fb
UI: init update machine
2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
90b13dc803
API: init machine update
2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
3522b8ba49
Machine update: fix upload sources from machine flake, instead of current directory
2024-08-15 15:08:15 +02:00
Johannes Kirschbauer
3f46d37b67
Clan-app: generate hw spec via ssh
2024-08-14 16:28:43 +02:00
Johannes Kirschbauer
eb844e83fe
Clan-cli: remove unused show machine
2024-08-14 16:18:43 +02:00
Johannes Kirschbauer
68c65fb3fd
API: add keyfile arg
2024-08-13 19:29:28 +02:00