DavHau
4ec218a200
vars,facts: update_check -> needs_upload
2024-11-13 13:34:15 +07:00
Johannes Kirschbauer
722012ed55
Modules/constraints: init constraints checking for inventory compatible modules
2024-11-12 18:36:38 +01:00
Jörg Thalheim
b67919b94d
vars: fix case if we have two vars with where one is the prefix of another one
2024-11-12 16:11:39 +00:00
a-kenji
3b04c5484c
pkgs/cli: Add @override decorator
2024-11-12 15:14:55 +00:00
a-kenji
c3fe5df5e9
pkgs/cli: Document clan machines list --tags
2024-11-12 14:59:23 +01:00
a-kenji
392d8437cb
pkgs/clan: machines list --tags add dynamic completer
2024-11-12 14:59:23 +01:00
a-kenji
8596deaeb7
pkgs/cli: Add tagging support to machines list
...
Add the `--tags` flag to `clan machines list`
This now supports the machine tagging system from the inventory.
Multiple tags are the intersection of the tags of a specific machine.
Example two machines with overlapping tags:
```
server: ["intel"]
laptop: ["intel", "graphical"]
```
- `clan machines list --tags intel` will output:
```
server
laptop
```
- `clan machines list --tags intel graphical` will output:
```
laptop
```
- `clan machines list --tags graphical` will output:
```
laptop
```
2024-11-12 14:58:55 +01:00
Johannes Kirschbauer
9fb6ea2b8a
Chore: remove unused clanImports module
2024-11-12 14:46:25 +01:00
Jörg Thalheim
5bc8670020
simplify reading hostPlaform.system from nixos
2024-11-11 16:17:54 +01:00
Qubasa
d3f0107f4d
clan-cli: Improved --debug output by indenting commands, add TRACE_DEPTH environment variable
2024-11-11 21:23:53 +07:00
Qubasa
9da872a267
clan-cli: Simplify hostPlatform and just use 'system'
2024-11-11 14:08:12 +00:00
Qubasa
9fc4e4c7d4
clan-cli: Fix nixos-anywhere for systems that can not be build locally
2024-11-11 14:08:12 +00:00
a-kenji
5d6ac539bc
pkgs/cli: Complete --tags flag
2024-11-11 13:48:00 +01:00
a-kenji
43bc09eb2e
pkgs/cli: Add dynamic completer for tags
...
Add a dynamic completer for `tags`.
Queries tag information from:
- the keys of the computed/static tags (inventory tags)
- the services tags
- the machines tags
2024-11-11 13:48:00 +01:00
a-kenji
431bb21c10
pkgs/cli: Unclutter help output slightly
2024-11-11 11:28:51 +00:00
Jörg Thalheim
71593604e5
HistoryEntry: add cleaner typesafe json deserialization
2024-11-11 11:36:17 +01:00
danjujan
c2b455c750
vms/qemu: do not always use waypipe graphic options
2024-11-11 10:41:26 +01:00
a-kenji
7a17edc0d6
pkgs/cli: Complete --target-host flag
2024-11-10 19:12:54 +01:00
a-kenji
3ca6c4afac
pkgs/cli: Add dynamic completer for target-host
2024-11-10 19:12:01 +01:00
a-kenji
23d0e2f115
pkgs/cli: Query target-host for machines install from configuration
...
Query `target-host` for `clan machines install` from the nixos
configuration (deployment.json), if possible.
Remove `TARGET_HOST` option and introduce `--target-host` command
line flag.
This brings the installation subcommand in line with the update
subcommand - improving consistency and usability.
Closes : #2309
2024-11-10 18:18:51 +01:00
clan-bot
f76a5cacc5
Merge pull request 'pkgs/cli: Group dynamic completer with the correct parser for clarity' ( #2354 ) from kenji/clan-core:kenji-group-completer into main
2024-11-10 14:56:18 +00:00
a-kenji
3e1bbd53d2
pkgs/cli: Group dynamic completer with the correct parser for clarity
2024-11-10 15:48:41 +01:00
a-kenji
4b67d9fa71
pkgs/cli: Improve error message on clan machines update
2024-11-10 15:47:21 +01:00
a-kenji
96f66a3810
pkgs/cli: Apply naming standards to help strings in clan machines update
2024-11-10 15:37:41 +01:00
clan-bot
e8f6786d95
Merge pull request 'pkgs/cli: Fix help string of clan machines create' ( #2350 ) from kenji/clan-core:kenji-fix-naming-create into main
2024-11-10 13:21:53 +00:00
a-kenji
aa1ca9ba59
pkgs/cli: Fix help string of clan machines create
2024-11-10 14:15:34 +01:00
a-kenji
0c7f18da12
pkgs/cli: Add --target-host to clan machines create
...
Add the `--target-host` flag to `clan machines create`.
This allows setting the `deploy.targetHost` for the newly created
machine via the inventory.
Closes : #2339
2024-11-10 14:13:39 +01:00
a-kenji
182ea02c46
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
f96020809c
pkgs/cli: Improve grammar in inventory doc comment
2024-11-10 00:51:21 +01:00
a-kenji
8eab08be8b
pkgs/cli: Fix grammar in inventory doc comment
2024-11-10 00:48:54 +01:00
a-kenji
c7ad5e1928
pkgs/cli: Remove superfluous comment string
2024-11-10 00:35:41 +01:00
clan-bot
4110404f30
Merge pull request 'Inventory: init inventory.tags for globally defined static and dynamic tags' ( #2328 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-11-08 15:01:07 +00:00
Johannes Kirschbauer
46836496aa
Clan-ts-api: filter out reserved tags from typescript, library generates invalid types
2024-11-08 15:55:37 +01:00
Jörg Thalheim
eb1daad08d
vars: update message if vars are up-to-date
2024-11-08 15:43:10 +01:00
Jörg Thalheim
d3abedafa9
don't show stacktrace if update fail
2024-11-08 15:43:10 +01:00
a-kenji
e0cebd005a
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
Johannes Kirschbauer
16b0592d0f
Classgen: forward item types for array types
2024-11-08 13:20:45 +01:00
Johannes Kirschbauer
4994b5acb5
Inventory: init inventory.tags for globally defined static and dynamic tags
2024-11-08 12:48:03 +01:00
a-kenji
552fb7e54a
pkgs/cli: Add minimal-flake-parts to create
2024-11-08 12:34:30 +01:00
a-kenji
fd3f2d1691
pkgs/cli: Hide clan history subcommand from help output
...
Hide the `clan history` subcommand from the help output.
It is only to be used by *very* advanced users currently and not even
them.
It is confusing in the current help output, because it is not clear what
it does.
This keeps the functionality around - while not confusing new users.
2024-11-05 19:27:43 +01:00
a-kenji
a195971749
pkgs/cli: Apply naming standards to description and help fields
2024-11-05 19:18:44 +01:00
Jörg Thalheim
2b05f90239
expose an option to generate hardware configuration during installation
2024-11-05 14:33:22 +01:00
Jörg Thalheim
86d8992046
generate-hardware-config: remove backup file after we are done
2024-11-04 15:05:08 +01:00
Jörg Thalheim
2f3369cca5
add build-on-remote flag
2024-11-04 13:27:50 +01:00
Jörg Thalheim
c02ecc2f67
tests/command: also wait for exit status
2024-11-04 12:57:07 +01:00
clan-bot
532a3d1009
Merge pull request 'Add nixos-facter, vars fixes and remove git from base system' ( #2292 ) from vars into main
2024-10-29 13:00:38 +00:00
Jörg Thalheim
b3d2be1f28
fix resource leak in case need_user_terminal is used
2024-10-29 13:54:12 +01:00
Jörg Thalheim
825fb1b6d6
Revert "{facts,vars}/generator: also setup /proc"
...
This reverts commit 943f836997a54f8b0d40665b555034b8ac5a5da4.
This currently fails in nix sandbox builds... figure this out later.
2024-10-29 13:53:58 +01:00
Jörg Thalheim
5feb248e8f
{facts,vars}/generator: also setup /proc
...
some applications fail without proc
2024-10-29 13:53:58 +01:00
danjujan
75ffb4436e
pkgs: fix typos
2024-10-29 12:37:34 +00:00