diff options
-rwxr-xr-x | bin/__dispatch.sh | 4 | ||||
l--------- | bin/tf-glesys | 1 | ||||
-rw-r--r-- | ops/glesys/default.nix | 8 |
3 files changed, 13 insertions, 0 deletions
diff --git a/bin/__dispatch.sh b/bin/__dispatch.sh index 6eb24beaf5c6..d06860e6c656 100755 --- a/bin/__dispatch.sh +++ b/bin/__dispatch.sh @@ -61,6 +61,10 @@ case "${TARGET_TOOL}" in depotfmt) attr="tools.depotfmt" ;; + tf-glesys) + TARGET_TOOL="terraform" + attr="ops.glesys.terraform" + ;; *) echo "The tool '${TARGET_TOOL}' is currently not installed in this repository." exit 1 diff --git a/bin/tf-glesys b/bin/tf-glesys new file mode 120000 index 000000000000..8390ec9c9652 --- /dev/null +++ b/bin/tf-glesys @@ -0,0 +1 @@ +__dispatch.sh \ No newline at end of file diff --git a/ops/glesys/default.nix b/ops/glesys/default.nix new file mode 100644 index 000000000000..f4c0478c5d89 --- /dev/null +++ b/ops/glesys/default.nix @@ -0,0 +1,8 @@ +{ depot, pkgs, ... }: + +depot.nix.readTree.drvTargets { + # Provide a Terraform wrapper with the right provider installed. + terraform = pkgs.terraform.withPlugins(_: [ + depot.third_party.terraform-provider-glesys + ]); +} |