feat(ops/glesys): Provide tf-glesys wrapper

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>
This commit is contained in:
Vincent Ambo 2021-12-24 19:23:08 +03:00 committed by clbot
parent 6e5ee41c57
commit 21b2055eb1
3 changed files with 13 additions and 0 deletions

View file

@ -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

1
bin/tf-glesys Symbolic link
View file

@ -0,0 +1 @@
__dispatch.sh

8
ops/glesys/default.nix Normal file
View file

@ -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
]);
}