diff options
Diffstat (limited to 'ops/keycloak/default.nix')
-rw-r--r-- | ops/keycloak/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ops/keycloak/default.nix b/ops/keycloak/default.nix index 5757debd1a39..ef95c7290ad8 100644 --- a/ops/keycloak/default.nix +++ b/ops/keycloak/default.nix @@ -1,8 +1,14 @@ -{ depot, pkgs, ... }: +{ depot, lib, pkgs, ... }: -depot.nix.readTree.drvTargets { +depot.nix.readTree.drvTargets rec { # Provide a Terraform wrapper with the right provider installed. terraform = pkgs.terraform.withPlugins (p: [ 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 + ''; } |