diff options
author | Vincent Ambo <mail@tazj.in> | 2021-12-24T16·23+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2021-12-24T19·21+0000 |
commit | 21b2055eb14ddaf7893f0a0a53b2a145b2f0e230 (patch) | |
tree | f96b644ddd297918544b00aba555c75630ecd0e9 | |
parent | 6e5ee41c57a733a3514c433f9d5e946c2a22e126 (diff) |
feat(ops/glesys): Provide tf-glesys wrapper r/3369
This provides the right Terraform provider with a wrapper in $PATH. Change-Id: Idcb4fa89dff0161e8a73addfce81959e825c331e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4562 Tested-by: BuildkiteCI Autosubmit: tazjin <mail@tazj.in> Reviewed-by: grfn <grfn@gws.fyi>
-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 + ]); +} |