diff options
author | Vincent Ambo <mail@tazj.in> | 2023-04-21T14·18+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-04-24T10·56+0000 |
commit | 55c9f4a8036b7eb4cc56b700d5d975f47029337a (patch) | |
tree | 52e8c2d89e5986f0297fb2abbb8cf87b9c7bafbb /corp/ops/default.nix | |
parent | 159646787a9696bbea4a1274c18b2b72ee501100 (diff) |
feat(corp/ops): bootstrap separate corp terraform config r/6107
Doesn't actually contain any configuration yet, just setting up TF with the right providers and so on. Change-Id: Ia7128dd977b4ff69eebaa36c6cad6ac104cafcdb Reviewed-on: https://cl.tvl.fyi/c/depot/+/8492 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp/ops/default.nix')
-rw-r--r-- | corp/ops/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/corp/ops/default.nix b/corp/ops/default.nix new file mode 100644 index 000000000000..59a998cca032 --- /dev/null +++ b/corp/ops/default.nix @@ -0,0 +1,21 @@ +{ depot, lib, pkgs, ... }: + +depot.nix.readTree.drvTargets rec { + # Provide a Terraform wrapper with Yandex Cloud support. + terraform = pkgs.terraform.withPlugins (p: [ + p.yandex + ]); + + validate = depot.tools.checks.validateTerraform { + inherit terraform; + name = "corp"; + src = lib.cleanSource ./.; + }; + + deps = depot.tools.depot-deps.overrideDeps { + tf-yandex = { + attr = "corp.ops.terraform"; + cmd = "terraform"; + }; + }; +} |