Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tf-providers): #0 update sops for vault support
- sops has vault support since https://github.com/mozilla/sops/releases/tag/v3.6.0 - sops-tf has 3.6.0 since https://github.com/carlpett/terraform-provider-sops/releases/tag/v0.5.2 - also obsovete the fork + branch workflow in favor of an in-tree patch workflow
- Loading branch information
Showing
4 changed files
with
84 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
final: prev: | ||
{ | ||
|
||
inherit (prev) | ||
terraform_0_13 | ||
terraform_0_14 | ||
terraform-providers; | ||
|
||
terraform-provider-names = [ | ||
"acme" | ||
"aws" | ||
"consul" | ||
"local" | ||
"nomad" | ||
"null" | ||
"sops" | ||
"tls" | ||
"vault" | ||
]; | ||
|
||
terraform-provider-versions = lib.listToAttrs (map | ||
(name: | ||
let | ||
provider = final.terraform-providers.${name}; | ||
provider-source-address = | ||
provider.provider-source-address or "registry.terraform.io/nixpkgs/${name}"; | ||
parts = lib.splitString "/" provider-source-address; | ||
source = lib.concatStringsSep "/" (lib.tail parts); | ||
in | ||
lib.nameValuePair name { | ||
inherit source; | ||
version = "= ${provider.version}"; | ||
}) | ||
final.terraform-provider-names); | ||
|
||
terraform-with-plugins = final.terraform_0_13.withPlugins | ||
(plugins: let | ||
plugins' = plugins // { | ||
acme = plugins.acme.overrideAttrs (old: { | ||
version = "1.5.0-patched2"; | ||
vendorSha256 = "0qapar40bdbyf7igf7fg5riqdjb2lgzi4z0l19hj7q1xmx4m8mgx"; | ||
src = fetchFromGitHub { | ||
owner = "getstackhead"; | ||
repo = "terraform-provider-acme"; | ||
rev = "v1.5.0-patched2"; | ||
sha256 = "1h6yk0wrn1dxsy9dsh0dwkpkbs8w9qjqqc6gl9nkrqbcd558jxfb"; | ||
}; | ||
}); | ||
consul = plugins.consul.overrideAttrs (old: { | ||
version = "2.11.0"; | ||
vendorSha256 = null; | ||
src = fetchFromGitHub { | ||
owner = "hashicorp"; | ||
repo = "terraform-provider-consul"; | ||
rev = "v2.11.0"; | ||
sha256 = "007v7blzsfh0gd3i54w8jl2czbxidwk3rl2wgdncq423xh9pkx1d"; | ||
}; | ||
}); | ||
vault = plugins.vault.overrideAttrs (old: { | ||
version = "2.18.0"; | ||
vendorSha256 = null; | ||
src = fetchFromGitHub { | ||
owner = "hashicorp"; | ||
repo = "terraform-provider-vault"; | ||
rev = "v2.18.0"; | ||
sha256 = "0lmgh9w9n0qvg9kf4av1yql2dh10r0jjxy5x3vckcpfc45lgsy40"; | ||
}; | ||
}); | ||
sops = plugins.sops.overrideAttrs (old: { | ||
version = "0.6.3"; | ||
vendorSha256 = "sha256-kBQVgxeGTu0tLgbjoCMdswwMvfZI3tEXNHa8buYJXME="; | ||
src = fetchFromGitHub { | ||
owner = "carlpett"; | ||
repo = "terraform-provider-sops"; | ||
rev = "v0.6.3"; | ||
sha256 = "sha256-yfHO/vGk7M5CbA7VkrxLVldAMexhuk0wTEe8+5g8ZrU="; | ||
}; | ||
}); | ||
}; | ||
in lib.attrVals final.terraform-provider-names plugins'); | ||
} |