Skip to content

Commit c9b2efc

Browse files
committed
tmpl tofu: add trace verbose machine name to tofu cluster build
1 parent 32727ae commit c9b2efc

File tree

1 file changed

+6
-1
lines changed
  • templates/cardano-parts-project/flake/opentofu

1 file changed

+6
-1
lines changed

templates/cardano-parts-project/flake/opentofu/cluster.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ with lib; let
3232
underscore = replaceStrings ["-"] ["_"];
3333

3434
nixosConfigurations = mapAttrs (_: node: node.config) config.flake.nixosConfigurations;
35-
nodes = filterAttrs (_: node: node.aws != null && node.aws.instance.count > 0) nixosConfigurations;
35+
nodes =
36+
filterAttrs (
37+
name: node:
38+
(builtins.traceVerbose "Evaluating machine: ${name}" node.aws != null) && node.aws.instance.count > 0
39+
)
40+
nixosConfigurations;
3641
dnsEnabledNodes = filterAttrs (_: node: node.cardano-parts.perNode.meta.enableDns) nodes;
3742

3843
mapNodes = f: mapAttrs f nodes;

0 commit comments

Comments
 (0)