DavHau
b3dd36bdb6
vars: improve generator pipeline
...
Compute the whole closure of to-be-executed generators upfront before executing anything
Properly compute closures for the 4 different scenarios:
1. full_closure: run all generators for a selected machine in topological order
2. all_missing_closure: run just the missing generators including their dependents
3. requested_closure: run only a selected list of generators including their missing dependencies and their dependents
4. minimal_closure: Run just enough to ensure that the list of selected generators are in a consistent state. Don't execute anything if nothing is missing.
2024-09-06 21:32:17 +02:00
DavHau
f5e65b5d0e
vars: refactor - ask prompts before running any generators
2024-09-06 16:08:46 +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
DavHau
1254b80a52
vars: add api endpoint set_prompts
2024-09-04 18:06:11 +02:00
clan-bot
87c5ded6a2
Merge pull request 'apply TRY lint' ( #2035 ) from joerg-ci into main
2024-09-04 13:20:11 +00:00
DavHau
570aadf065
vars: set vars via cli; improve getting vars via cli;
2024-09-04 14:48:42 +02:00
Jörg Thalheim
403b9cf2cc
apply TRY lint
2024-09-03 18:13:46 +02:00
DavHau
2621a961e7
vars: make simplify vars store abstraction
2024-09-02 18:44:00 +02:00
Jörg Thalheim
15ff74f7c2
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +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
DavHau
2ec3abb24c
vars: improve check command and add tests
2024-09-01 16:45:09 +02:00
DavHau
ec055f7606
vars: introduce deploy=true/false for generated files
2024-09-01 14:32:46 +02:00
DavHau
cc9c828598
vars: introduce share flag
2024-08-03 15:26:53 +07:00
DavHau
9ff076aec1
vars: implement prompts
2024-07-22 20:40:12 +07:00
Qubasa
8ad7c2b89a
clan: Fix treefmt not applying mypy lints on clan_cli and clan_app
2024-07-17 21:50:52 +02:00
Jörg Thalheim
0d6e2539e3
Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
...
This reverts commit 37e6ca7a30 .
2024-07-17 14:04:49 +02:00
DavHau
117843021e
vars: implement dependencies
2024-07-17 16:42:16 +07:00
DavHau
37e6ca7a30
clan-cli: deprecate nix_shell() in favor of run_cmd()
2024-07-16 14:03:17 +07:00
DavHau
9988fb744c
vars: implement sops.defaultGroups
2024-07-11 18:39:29 +07:00
DavHau
3447a98bee
vars: implement generating public variables via in_repo
2024-07-09 14:26:56 +07:00
DavHau
9ff0045698
WIP: vars: copy python code from facts
2024-07-09 12:42:29 +07:00