Jörg Thalheim
6b8a9ff0dc
skip writing the empty inventory json
2024-12-04 12:14:32 +01:00
clan-bot
1511b14b3c
Merge pull request 'fix vars migration prompts. add secretsForUsers to vars interface and implement that for pass' ( #2551 ) from lassulus/clan-core:vars-stuff into main
2024-12-04 09:03:24 +00:00
clan-bot
15458c33ba
Merge pull request 'Add missing quotes around nix-command flakes' ( #2557 ) from Enzime/clan-core:push-ovqtprtkzuvm into main
2024-12-04 08:49:02 +00:00
Michael Hoang
b414b153ba
clan_cli: fix missing quotes around nix-command flakes
...
Before:
[$] nix \
--extra-experimental-features nix-command flakes \
show-config \
--json
After:
[$] nix \
--extra-experimental-features 'nix-command flakes' \
show-config \
--json
2024-12-04 19:40:15 +11:00
DavHau
37ad4eaad5
vars: print() -> log.info()
2024-12-04 14:08:50 +07:00
DavHau
f5226ec7ff
vars: Improve logging for migration
2024-12-04 12:42:03 +07:00
DavHau
ae24672c54
secrets: improve error message on wrong age key format
2024-12-04 12:04:07 +07:00
Michael Hoang
fd3e741eba
Add --print-build-logs to some Nix commands
2024-12-04 10:04:07 +11:00
lassulus
c6a713d393
cli vars generate: log in global context what is global
2024-12-03 22:29:25 +01:00
lassulus
d89ee46d7f
vars password-store: add neededForUsers option
2024-12-03 22:28:39 +01:00
lassulus
2916798e84
vars generate: show prompts only if not migrating
2024-12-03 22:25:16 +01:00
Jörg Thalheim
455c8654a1
clan/update: make build-host overridable in cli
2024-12-03 17:40:12 +01:00
Jörg Thalheim
8b0d791c5a
remove deprecated deploymentHost
2024-12-03 17:30:02 +01:00
Jörg Thalheim
51526aedbb
rename run_no_output to run_no_stdout
...
we want stderr for some nix commands.
2024-12-03 17:15:28 +01:00
Qubasa
164c621dc0
clan-cli: Fix ignored debug flag in clan vms run, refactor Host.run to use RunOpts
2024-12-03 16:01:51 +01:00
Johannes Kirschbauer
1bdbbfbd5b
api/machines: include disk and hw_config into machine details
2024-12-03 14:01:11 +01:00
Johannes Kirschbauer
045b7d6c28
api/modules: seperate frontmatter parsing from extraction
2024-12-03 14:01:00 +01:00
Johannes Kirschbauer
d15e801940
api/disk-templates: adopt directory structure from clan modules
2024-12-03 12:01:35 +01:00
a-kenji
05c12e4ee9
pkgs/cli: Fix suggestion after key generation
...
Fix the suggestion that is given when generating a new key.
Closes : #2537
2024-12-03 10:01:55 +01:00
clan-bot
41e5192f0f
Merge pull request 'Automatic flake update - nixpkgs - 2024-12-02T00:00+00:00' ( #2530 ) from flake-update-nixpkgs-2024-12-02 into main
2024-12-02 14:21:56 +00:00
lassulus
79a2283c71
*: nix fmt
2024-12-02 15:14:40 +01:00
lassulus
1b83fd27a8
cli vars: remove get_all from baseclass
2024-12-02 11:30:09 +01:00
Johannes Kirschbauer
07c8b2c9ae
Clan-api: disk schema: improve error messages for invalid options
2024-11-29 21:33:22 +01:00
Johannes Kirschbauer
6d50587f7b
Clan-api: init set disk_schema from facter report
2024-11-29 21:30:46 +01:00
hsjobeki
26fa2bfad6
revert c7a3d52a33
...
revert Clan-app: init single-disk template
2024-11-29 20:08:02 +00:00
DavHau
681c671391
vars/migration: remove useless check
2024-11-29 17:23:31 +07:00
DavHau
66ce80c096
vars: rename: invalidation -> validation
2024-11-29 17:23:31 +07:00
DavHau
03bcf6bba3
vars: generate docs for cli and module
2024-11-29 17:23:31 +07:00
clan-bot
88861ecfb7
Merge pull request 'vars: make upload actually upload' ( #2520 ) from lassulus/clan-core:vars_upload into main
2024-11-28 20:08:19 +00:00
lassulus
513431148e
vars: make upload actually upload
2024-11-28 21:00:12 +01:00
Qubasa
ff8d82c3c6
clan-vm-manager: Fix regression part2
2024-11-28 19:01:46 +01:00
lassulus
d4fb4efd1f
cli vars upload: fix sops
2024-11-28 17:52:04 +01:00
clan-bot
a97d719a52
Merge pull request 'remove secretsUploadDirectory from common module' ( #2509 ) from lassulus/clan-core:no-secrets-upload-dir into main
2024-11-28 15:46:51 +00:00
lassulus
c00ac4a246
vars: remove secretsUploadDirectory from common module
2024-11-28 16:38:06 +01:00
Johannes Kirschbauer
c7a3d52a33
Clan-app: init single-disk template
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
ee9fdb7ac7
Clan-app/api: improve error message for mismatching types
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
d3be596c77
Clan-app/api: error on {unknown api method, mismatching parameter name}
2024-11-28 16:37:52 +01:00
Qubasa
95cb239206
clan-cli: refactor HostGroup._run_local to work with RunOpts
2024-11-28 16:05:51 +01:00
Qubasa
d2719f3179
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
Johannes Kirschbauer
5d78c7a01e
CLI: use new template path
2024-11-28 11:44:44 +01:00
Qubasa
d29f9bf86c
clan-cli: SSH now completely refactored to use dataclasses everywhere
2024-11-28 10:52:14 +01:00
Qubasa
55e080a89f
clan-cli: Add -L option to nixos-rebuild switch to still have build output, simplify logging code
2024-11-28 10:42:43 +01:00
Qubasa
fddaa3a5bb
clan-cli: Refactor colors to a subset of colors that work in light and dark mode
2024-11-27 12:42:10 +01:00
lassulus
354a71f574
cli machines update: remove dead code
2024-11-27 10:33:28 +01:00
Johannes Kirschbauer
f9eaf3e8ec
Cli: improve targetHost error message
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
b68cf7a7e5
API/serde: fix construction of Enum values
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
bcc0f9e61d
Cli: fix error description should be appended
2024-11-27 10:06:04 +01:00
DavHau
61576649ff
vars: make all python tests work in nix sandbox
...
- generate a flake.lock file for each template by copying the clan-core flake.lock and modifying it
- call nix build with --store for tests inside the sandbox
2024-11-27 14:32:02 +07:00
Louis Opter
5a5b92ef1d
clan-cli: secrets: sops: SOPS_NIX_SECRET is not a sops variable
...
It's a variable internal to us, and it does not need to be allowed.
2024-11-27 06:27:53 +00:00
Louis Opter
1e0db82827
clan-cli: secrets: address CR feedback for sops encryption and key handling
...
- Move public keys collection to a class method on `SopsKey`, and
implement collection for each key type in `KeyType`, this helps make
the code more generic ;
- Replace `Operation.__call__` by `run` (`sops.run` if you import the
entire module), that allows us to dedent the code so that's cool ;
- Fix exception handling when trying to get a in-memory temporary file ;
- Make Executor cuter 😵 🪦 .
2024-11-27 06:27:53 +00:00