Commit Graph

24 Commits (338b25697c952b17ef9b012cbe068f2d0b8fc4b3)

Author SHA1 Message Date
zimbatm c79ff8ddca
terraform: fix withPlugins
Move the providerSourceAddress fallback to the terraform.withPlugins
function. Since plugins can be arbitrary derivations, there is no
guarantee that this attribute will be exposed.

While doing that I also cleaned the toDrv function to only pass
attributes to the builder which are required by the build.

The Terraform 0.13 fallback slug has changed from
`nixpkgs/<provider-owner>/<provider-name>` to `nixpkgs/<provider-name>`
as the owner is also not always available. As a nixpkgs user, all I know
is that the provider is in nixpkgs and his name, the owner information
is not necessarily easy to get by.
2020-10-09 16:55:30 +02:00
Timothy Stott cd1b594767 terraform: expose providers to terraform 0.13
Terraform 0.13 adopts a new filesystem layout for plugins (illustrated below).

Terraform 0.12 and earlier
`plugins-dir/terraform-provider-aws_v3.7.0`

Terraform 0.13
`plugins-dir/registry.terraform.io/hashicorp/aws/3.7.0/linux_amd64/terraform-provider-aws_v3.7.0`

To support all packaged Terraform versions a shim is created at both locations.

This approach was inspired by https://github.com/numtide/generate-terraform-provider-shim

Terraform 0.13 provider documentation https://www.terraform.io/upgrade-guides/0-13.html#new-filesystem-layout-for-local-copies-of-providers

layout terraform providers filesystem in withPlugins
2020-10-08 22:18:12 +01:00
Timothy Stott 87e21d1153 terraform-provider.acme: 1.5.0 -> 1.5.0-patched 2020-10-08 19:01:08 +01:00
Timothy Stott 063f1d7301 terraform-providers: store providers as JSON 2020-10-08 19:00:07 +01:00
Maurice B. Lewis 94d2aeb559
terraform-providers: add version to patchGoModVendor providers (#97590)
Add version to binaries produced via patchGoModVendor to allow run-time provider
version validation by terraform.

This was initially introduced in 4e63119c54 (terraform: add the version component to terraform provider paths (#34497), 2018-02-06)
but broken in 3e5149a79a (terraform-providers: fix the google and google-beta providers, 2020-03-24)
for terraform-providers.google and terraform-providers.google-beta, and in 20f55a9fc0 (terraform-providers.ibm: move to update-all script, 2020-04-26)
for terraform-providers.ibm.
2020-09-27 22:20:41 +00:00
Jean-Philippe Braun 5debd8c0ab terraform-provider-keycloak: init at 1.20.0 2020-08-08 16:51:53 +02:00
Matej Urbas 2f355e776b
pkgs.terraform: add terraform-provider-shell 1.6.0 (#93069) 2020-07-14 14:05:39 +00:00
Florian Klink 241eef1ec3 terraform-providers: update
This bumps the terraform provider to their latest version.

Hashicorp moved yet another provider to their organization
(`terraform-provider-helm`), so we need patch URLs in there as well.

The following proviers were not bumped:

 - `google[-beta]`: It seems something changed again here with how
   dependencies are provided.
 - `nomad`: fails to build
 - `lacework`: This one appeared fresh at `terraform-providers`, and
   doesn't build (yet?)
2020-06-08 21:17:16 +02:00
zimbatm 018aadcfa1
terraform-providers.vpsadmin: init at 0.1.0 2020-04-26 13:35:16 +02:00
zimbatm 20f55a9fc0
terraform-providers.ibm: move to update-all script 2020-04-26 13:07:04 +02:00
Florian Klink 9f270c6491 terraform-providers: update 2020-04-02 18:33:40 +02:00
zimbatm 3e5149a79a terraform-providers: fix the google and google-beta providers 2020-04-02 17:53:05 +02:00
Jörg Thalheim 066db11215
Revert "Merge pull request #83099 from marsam/fix-buildGoModule-packages-darwin"
This reverts commit 4e6bf03504, reversing
changes made to afd997aab6.

Instead we propagate those frameworks from the compiler again
2020-03-27 07:33:21 +00:00
Colin L Rice ac1336120f treewide Drop unneeded go 1.12 overrides 2020-03-22 18:06:25 -04:00
Mario Rodas 8a51989af0 terraform-providers.elasticsearch: fix build on darwin 2020-03-21 06:25:00 -05:00
Jeffry Molanus 4bcdfdb7b8 terraform-providers.lxd: init at 1.3.0 2020-03-19 00:10:04 +01:00
Marius Bergmann 3ddd53e576 terraform-providers: fix handling of version/rev in provider list
I interpreted the purpose of stripping the first character from the 'version'
argument as an attempt to remove a prefixed 'v' (e.g. 'v1.0.0') from a version
tag. This works if the tag actually has a 'v' prefix, but also removes the first
character if version tags are not prefixed (e.g. '1.0.0').

Additionally, the 'v' was added again when specifying the `rev` for
`fetchFromGitHub` in default.nix. As described above, this did also not work
when provider repos did not prefix their version tags with 'v'.

I changed the implementation as follows:

- `version` and `rev` are stored inside data.nix
- `version` is used to declare the nix package version
- `rev` is used to fetch the proper git ref when building the package
- for determining `version`, an optional leading 'v' is trimmed from the tag
  name

Now this has the implication that the latest tag must always be a release tag
when using the `update-all` script, but as the result of running `update-all`
should always be reviewed before submission, makes this appear a manageable
tradeoff to me.
2019-11-08 23:41:08 +01:00
Roman Volosatovs 8c33df9d65
all-packages: use go 1.12 for terraform-providers.elasticsearch 2019-10-11 10:09:09 +02:00
Urban Skudnik f1b81ff2cd
Update ansible package
Needs to be moved out of automatic update-all since it requires
goDeps.
2019-07-26 12:45:20 +02:00
Bas van Dijk d19b0b2ddf terraform-provider-elasticsearch: init at 0.6.0 2019-05-27 17:48:36 +02:00
Stephen ab2c1a7bed
terraform-providers: limit subpackages
https://github.com/NixOS/nixpkgs/pull/52937#issuecomment-455629855
2019-01-18 09:49:19 -08:00
zimbatm e4f8d5c254
terraform-providers.gandi: init at 1.0.0 (#48223) 2018-10-11 21:53:30 +02:00
Wael M. Nasreddine 6ff45f34d8
terraform-providers: move ibm and libvirt underneath the terraform-providers 2018-09-28 11:32:19 -07:00
zimbatm ef64786cda
terraform: move providers to terraform-providers
Before, providers were only built indirectly. Since proviers don't
depend on terraform to build they can be moved into their own collection
of packages. This also has the advantage that they can be reached
directly using an attribute path (Eg: terraform-providers.nixos).

Co-authored-by: Wael Nasreddine <wael.nasreddine@gmail.com>
2018-09-28 11:22:27 -07:00