about summary refs log tree commit diff
path: root/ops/keycloak
diff options
context:
space:
mode:
Diffstat (limited to 'ops/keycloak')
-rw-r--r--ops/keycloak/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/ops/keycloak/default.nix b/ops/keycloak/default.nix
index ef95c7290ad8..94ed912dc936 100644
--- a/ops/keycloak/default.nix
+++ b/ops/keycloak/default.nix
@@ -6,9 +6,9 @@ depot.nix.readTree.drvTargets rec {
     p.keycloak
   ]);
 
-  validate = pkgs.runCommand "tf-validate-keycloak" { } ''
-    cp -r ${lib.cleanSource ./.}/* . && chmod -R u+w .
-    ${terraform}/bin/terraform init -upgrade -backend=false -input=false
-    ${terraform}/bin/terraform validate | tee $out
-  '';
+  validate = depot.tools.checks.validateTerraform {
+    inherit terraform;
+    name = "keycloak";
+    src = lib.cleanSource ./.;
+  };
 }