clan-bot
57f9b1a410
Merge pull request 'pkgs/cli: Improve clan secrets help' ( #2416 ) from kenji/clan-core:kenji-cli/secrets/help into main
2024-11-14 14:18:43 +00:00
clan-bot
24254c8626
Merge pull request 'pkgs/cli: Remove superfluous comment string' ( #2414 ) from kenji/clan-core:kenji-cli/improve/show-comment into main
2024-11-14 14:15:52 +00:00
clan-bot
92d9c4ab40
Merge pull request 'pkgs/cli: Fix typo in test fixtures' ( #2412 ) from kenji/clan-core:kenji-fix/typo-fixture into main
2024-11-14 14:13:12 +00:00
a-kenji
a17992a59f
pkgs/cli: Improve clan secrets help
2024-11-14 15:07:16 +01:00
a-kenji
a7e68637a9
pkgs/cli: Remove superfluous comment string
2024-11-14 15:04:19 +01:00
a-kenji
279b5b316d
pkgs/cli: Improve help output of show subcommand
2024-11-14 15:03:14 +01:00
a-kenji
6bb26746f1
pkgs/cli: Fix typo in test fixtures
2024-11-14 15:00:44 +01:00
lassulus
7ae7ac8bd1
cli vars password-store: fix file locations
2024-11-14 12:07:52 +01:00
a-kenji
a1508ab9cb
pkgs/cli: Fix typo in comment
2024-11-14 10:17:44 +01:00
DavHau
21796c1dbb
clan-cli: remove --no-write-lock-file from nix invocations
2024-11-14 14:11:06 +07:00
DavHau
820427b949
cleanup: remove legacy flake fixture test_flake_minimal and test_flake_with_core_and_pass
2024-11-14 14:03:29 +07:00
lassulus
11ce774820
clan_cli vars: actually upload
2024-11-13 13:23:42 +01:00
Jörg Thalheim
cb6fefd694
cmd: also process stdin
2024-11-13 13:23:42 +01:00
lassulus
745af335ec
cli machines update: run deploy directly if deploying single machine
2024-11-13 13:23:42 +01:00
DavHau
54b8f5904e
vars: allow re-encrypting secrets when recipient keys were added.
...
When the users of a secret change, when for example a new admin user is added, an error will be thrown when generating vars, prompting the user to pass --fix to re-encrypt the secrets
2024-11-13 18:49:30 +07:00
clan-bot
3822efc11b
Merge pull request 'Modules/constraints: init constraints checking for inventory compatible modules' ( #2391 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-11-13 08:02:29 +00:00
DavHau
236d9eaec3
vars,facts: update_check -> needs_upload
2024-11-13 13:34:15 +07:00
Johannes Kirschbauer
241db1cade
Modules/constraints: init constraints checking for inventory compatible modules
2024-11-12 18:36:38 +01:00
Jörg Thalheim
8e4067ee03
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
c0678885b5
pkgs/cli: Add @override decorator
2024-11-12 15:14:55 +00:00
a-kenji
fd4ba6d86f
pkgs/cli: Document clan machines list --tags
2024-11-12 14:59:23 +01:00
a-kenji
f160de2722
pkgs/clan: machines list --tags add dynamic completer
2024-11-12 14:59:23 +01:00
a-kenji
8a6239e08d
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
c7da3e165f
Chore: remove unused clanImports module
2024-11-12 14:46:25 +01:00
Jörg Thalheim
7cb296e717
simplify reading hostPlaform.system from nixos
2024-11-11 16:17:54 +01:00
Qubasa
2df1179666
clan-cli: Improved --debug output by indenting commands, add TRACE_DEPTH environment variable
2024-11-11 21:23:53 +07:00
Qubasa
5d7b626ede
clan-cli: Simplify hostPlatform and just use 'system'
2024-11-11 14:08:12 +00:00
Qubasa
a60a8ba6a4
clan-cli: Fix nixos-anywhere for systems that can not be build locally
2024-11-11 14:08:12 +00:00
a-kenji
464fb64f5f
pkgs/cli: Complete --tags flag
2024-11-11 13:48:00 +01:00
a-kenji
c9ec772f1d
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
3adc67967f
pkgs/cli: Unclutter help output slightly
2024-11-11 11:28:51 +00:00
Jörg Thalheim
cd13bfe6ed
HistoryEntry: add cleaner typesafe json deserialization
2024-11-11 11:36:17 +01:00
danjujan
1243358e74
vms/qemu: do not always use waypipe graphic options
2024-11-11 10:41:26 +01:00
a-kenji
7ab1707ab9
pkgs/cli: Complete --target-host flag
2024-11-10 19:12:54 +01:00
a-kenji
81d39e00e1
pkgs/cli: Add dynamic completer for target-host
2024-11-10 19:12:01 +01:00
a-kenji
d689dd8f6c
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
9723e9c210
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
995986e2cd
pkgs/cli: Group dynamic completer with the correct parser for clarity
2024-11-10 15:48:41 +01:00
a-kenji
8bf7eeda4c
pkgs/cli: Improve error message on clan machines update
2024-11-10 15:47:21 +01:00
a-kenji
a9dc71f6ad
pkgs/cli: Apply naming standards to help strings in clan machines update
2024-11-10 15:37:41 +01:00
clan-bot
8c44d52d18
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
767859f3bf
pkgs/cli: Fix help string of clan machines create
2024-11-10 14:15:34 +01:00
a-kenji
ccb62254f2
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
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
1a9e9246be
pkgs/cli: Improve grammar in inventory doc comment
2024-11-10 00:51:21 +01:00
a-kenji
767244301a
pkgs/cli: Fix grammar in inventory doc comment
2024-11-10 00:48:54 +01:00
a-kenji
ddda609b7c
pkgs/cli: Remove superfluous comment string
2024-11-10 00:35:41 +01:00
clan-bot
13d4b3f8b0
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
326d3d977c
Clan-ts-api: filter out reserved tags from typescript, library generates invalid types
2024-11-08 15:55:37 +01:00
Jörg Thalheim
34410c6e17
vars: update message if vars are up-to-date
2024-11-08 15:43:10 +01:00