a-kenji
eb1cf50def
pkgs/cli: Improve tense of message in machines create
...
Change the log message tense from present to continuous for improved clarity.
The message "Add file" has been changed to "Adding file" to provide a clear
indication that the file addition is an ongoing process, not a
command (for the user).
2024-11-10 01:14:40 +01:00
a-kenji
ddda609b7c
pkgs/cli: Remove superfluous comment string
2024-11-10 00:35:41 +01:00
a-kenji
a6f44fd6bd
pkgs/cli: Fix dynamic completions for update-hardware-config and it's flags
...
Fix dynamic completions for `update-hardware-config` and it's flags.
Now `update-hardware-config` correctly suggests machines as well as for
example `--backend` suggests correctly their respective flags.
2024-11-08 14:23:11 +01:00
Jörg Thalheim
414c908717
expose an option to generate hardware configuration during installation
2024-11-05 14:33:22 +01:00
Jörg Thalheim
c9760e942e
generate-hardware-config: remove backup file after we are done
2024-11-04 15:05:08 +01:00
Jörg Thalheim
1ec4bb124e
add build-on-remote flag
2024-11-04 13:27:50 +01:00
DavHau
db0fdba384
cli: set needs_user_terminal for all ssh commands
2024-10-23 19:40:50 +07:00
Qubasa
528f9f9684
clan-cli: Fix breakage if machines update
2024-10-08 03:38:46 +02:00
Qubasa
5bd607a8ad
clan-cli: Fix bug where --host-key-check is not applied to build-host
2024-10-08 03:03:13 +02:00
Qubasa
e85e5c13e4
clan-cli: Fix bug where --host-key-check is not applied everywhere
2024-10-08 00:25:15 +00:00
Qubasa
7bd50b03b3
clan-cli: Add --host-key-check to machine update
2024-10-05 23:33:44 +02:00
Qubasa
34711c419c
clan-cli: Fix bug where --target_host is getting ignored
2024-10-05 18:51:44 +02:00
Jörg Thalheim
2a2818d050
add more custom prefixes for temporary directories
2024-10-01 20:54:19 +02:00
clan-bot
e014800f03
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
237327ead3
start to name temporary directories in more places
2024-10-01 18:57:59 +02:00
Louis Opter
c132811c9e
Update outdated help messages and fix a typo
2024-09-29 15:52:58 +00:00
Jörg Thalheim
e58b0df2db
fix broken eval check when nixpkgs.pkgs nixos option is used
2024-09-29 16:59:02 +02:00
Jörg Thalheim
5c6a0be70c
make default hardware report commit message nicer
2024-09-29 16:59:02 +02:00
Jörg Thalheim
bd8bc98863
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
deea4a74b3
wrap hardware generate arguments into an object
2024-09-29 16:59:02 +02:00
Jörg Thalheim
b97ee66e8f
don't expose polymorphic api
2024-09-29 16:21:53 +02:00
Jörg Thalheim
84cb54a537
remove unused location from ClanError
2024-09-29 16:21:53 +02:00
Jörg Thalheim
7b93ef6704
expose nixos-facter in cli
2024-09-29 16:21:53 +02:00
Jörg Thalheim
5b878ac8ac
use packaged nixos-facter in generate_hardware_info
2024-09-24 11:38:33 +02:00
Qubasa
d4e8f88185
clan-cli: Move clan machines import to clan machines create
2024-09-23 17:11:48 +02:00
Jörg Thalheim
b4fb4f180b
rename hw-generate to update-hardware-config
2024-09-20 13:42:18 +02:00
DavHau
501ade7de7
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
ec109e7f67
vars: generate vars for clan install
...
fixes #2087
2024-09-17 20:41:39 +02:00
Qubasa
0f0a8825e1
clan-cli: Init clan machines import
2024-09-16 18:15:55 +02:00
Johannes Kirschbauer
b4e3dff23b
CLI: api.register type preservation
2024-09-16 12:52:28 +00:00
Johannes Kirschbauer
91a9fb23be
API: rename set_inventory
2024-09-13 16:11:10 +02:00
DavHau
9d86c5474f
clan-cli: fix cyclic import problem
2024-09-06 15:38:12 +02:00
DavHau
f161c7ca58
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
403b9cf2cc
apply TRY lint
2024-09-03 18:13:46 +02:00
Johannes Kirschbauer
c9b3775f72
Fix cyclic imports: __init__.py are automatically imported
2024-09-03 17:24:31 +02:00
Jörg Thalheim
44813d2fcc
only accept eval/build for nix command
2024-09-03 10:49:53 +02:00
Jörg Thalheim
659e5b37dd
use pathlib everywhere
2024-09-02 18:26:13 +02:00
Jörg Thalheim
357b619068
add SIM lint
2024-09-02 16:39:30 +02:00
Jörg Thalheim
ad3daa3ce4
add RET, Q, RSE lint
2024-09-02 15:58:49 +02:00
Johannes Kirschbauer
5cfa72edcc
UI: AdminSettings page
2024-09-02 15:08:36 +02:00
Jörg Thalheim
15ff74f7c2
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
e9a266001c
enable comprehensions linting rules
2024-09-02 13:35:52 +02:00
Jörg Thalheim
35839ef701
enable bug-bear linting rules
2024-09-02 13:26:07 +02:00
Jörg Thalheim
af4b9cc2d5
make all same-module imports relative, the rest absolute
...
This makes sorting more consitent.
2024-09-02 13:00:19 +02:00
Johannes Kirschbauer
b7c70cd058
API: fix online check
2024-08-26 18:00:41 +02:00
Johannes Kirschbauer
2d05b98ae3
CLI: add option to generate facter.json
2024-08-26 09:05:01 +02:00
Jörg Thalheim
8a3d21c424
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
68e1d023e9
hw-generate: fix args
2024-08-24 12:07:22 +02:00
Jörg Thalheim
6dd73177a3
correct error message about allowed hostnames
2024-08-24 11:30:26 +02:00
Johannes Kirschbauer
76fbac8431
API: prepare hw_generate for facter
2024-08-23 11:13:06 +02:00