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:
parent
6e5ee41c57
commit
21b2055eb1
3 changed files with 13 additions and 0 deletions
|
@ -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
1
bin/tf-glesys
Symbolic link
|
@ -0,0 +1 @@
|
|||
__dispatch.sh
|
8
ops/glesys/default.nix
Normal file
8
ops/glesys/default.nix
Normal 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
|
||||
]);
|
||||
}
|
Loading…
Reference in a new issue