Jörg Thalheim
6247723c50
commit file instead of just git adding it
2024-12-04 12:14:32 +01:00
Jörg Thalheim
3452ca54e6
skip writing the empty inventory json
2024-12-04 12:14:32 +01:00
clan-bot
2b763152fb
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
b72ff23732
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
ca26431d12
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
439cde691f
vars: print() -> log.info()
2024-12-04 14:08:50 +07:00
DavHau
a11820b1d6
vars: Improve logging for migration
2024-12-04 12:42:03 +07:00
DavHau
4e4724f766
secrets: improve error message on wrong age key format
2024-12-04 12:04:07 +07:00
Michael Hoang
b9d922eaac
Add --print-build-logs to some Nix commands
2024-12-04 10:04:07 +11:00
lassulus
996c5bdda1
cli vars generate: log in global context what is global
2024-12-03 22:29:25 +01:00
lassulus
e6eaa3cc03
vars password-store: add neededForUsers option
2024-12-03 22:28:39 +01:00
lassulus
9f5cd917de
vars generate: show prompts only if not migrating
2024-12-03 22:25:16 +01:00
Jörg Thalheim
0b3816b6ec
clan/update: make build-host overridable in cli
2024-12-03 17:40:12 +01:00
Jörg Thalheim
760126d8d5
remove deprecated deploymentHost
2024-12-03 17:30:02 +01:00
Jörg Thalheim
bbb2aca5cb
rename run_no_output to run_no_stdout
...
we want stderr for some nix commands.
2024-12-03 17:15:28 +01:00
Qubasa
570bceff4e
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
1768e44d51
api/machines: include disk and hw_config into machine details
2024-12-03 14:01:11 +01:00
Johannes Kirschbauer
aa79f31664
api/modules: seperate frontmatter parsing from extraction
2024-12-03 14:01:00 +01:00
Johannes Kirschbauer
d1f624ad1f
api/disk-templates: adopt directory structure from clan modules
2024-12-03 12:01:35 +01:00
a-kenji
3d4f601c11
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
f3131afe14
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
3ae82f3efc
*: nix fmt
2024-12-02 15:14:40 +01:00
lassulus
c9f0e88164
cli vars: remove get_all from baseclass
2024-12-02 11:30:09 +01:00
Johannes Kirschbauer
9c6582a197
Clan-api: disk schema: improve error messages for invalid options
2024-11-29 21:33:22 +01:00
Johannes Kirschbauer
1d566a47f4
Clan-api: init set disk_schema from facter report
2024-11-29 21:30:46 +01:00
hsjobeki
9201a29c1d
revert 2031807acb
...
revert Clan-app: init single-disk template
2024-11-29 20:08:02 +00:00
DavHau
8d007867b3
vars/migration: remove useless check
2024-11-29 17:23:31 +07:00
DavHau
5c5a87d416
vars: rename: invalidation -> validation
2024-11-29 17:23:31 +07:00
DavHau
fbbfcc0aa5
vars: generate docs for cli and module
2024-11-29 17:23:31 +07:00
clan-bot
e1d9467357
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
936a9f555b
vars: make upload actually upload
2024-11-28 21:00:12 +01:00
Qubasa
cf2ddfc191
clan-vm-manager: Fix regression part2
2024-11-28 19:01:46 +01:00
lassulus
b746f393a6
cli vars upload: fix sops
2024-11-28 17:52:04 +01:00
clan-bot
894e31f983
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
8337a3ec41
vars: remove secretsUploadDirectory from common module
2024-11-28 16:38:06 +01:00
Johannes Kirschbauer
2031807acb
Clan-app: init single-disk template
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
ff1164369a
Clan-app/api: improve error message for mismatching types
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
f5a6052f43
Clan-app/api: error on {unknown api method, mismatching parameter name}
2024-11-28 16:37:52 +01:00
Qubasa
cc8c76e4d4
clan-cli: refactor HostGroup._run_local to work with RunOpts
2024-11-28 16:05:51 +01:00
Qubasa
1f98df96e3
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
Johannes Kirschbauer
3b7559e066
CLI: use new template path
2024-11-28 11:44:44 +01:00
Qubasa
9c2c33d577
clan-cli: SSH now completely refactored to use dataclasses everywhere
2024-11-28 10:52:14 +01:00
Qubasa
80045a9af1
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
a1a367c57c
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
e978f91209
cli machines update: remove dead code
2024-11-27 10:33:28 +01:00
Johannes Kirschbauer
fa7e9a9670
Cli: improve targetHost error message
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
4e61df9601
API/serde: fix construction of Enum values
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
f8b98dfe54
Cli: fix error description should be appended
2024-11-27 10:06:04 +01:00
DavHau
44e6fe803f
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
93fa2af239
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