tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: updating terraform to v1.8.5
Pete Wright writes:
> hello,
Hello Pete,
> i recently filed this PR:
> pkg/58731
> https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58731
>
Thanks!
Nitpit: the LICENSE should be updated too!
> in it i propose a patch to bring terraform up to the same version
> supported by the open and freebsd ports tree's. it was mentioned in the
> PR that this should also be discussed on this list so i'm starting a
> thread here.
>
> on my end i was able to successfully build terraform and build and
> import the two main providers and perform some basic smoke tests on code
> i use for work:
>
> $ terraform -version
> Terraform v1.8.5-dev
> on netbsd_amd64
> + provider registry.terraform.io/hashicorp/aws v5.70.0
> + provider registry.terraform.io/hashicorp/template v2.2.0
>
> Your version of Terraform is out of date! The latest version
> is 1.9.7. You can update by downloading from
> https://www.terraform.io/downloads.html
> $
>
I have worked on it in pkgsrc-wip and added several Terraform versions
(0.13, 0.14, 0.15, 1.1 and 1.3) and OpenTofu and I have written some
more infrastructure-ish bits, wip/terraform/provider.mk that should be
used by Terraform providers. I have also written
wip/terraform/version.mk to set a preferred Terraform version but that
should be definitely reviewed/adjusted (if we stop requiring that
providers depends on Terraform (that strictly speaking is the case), we
do not need it anymore).
I think it is important that we have the support in pkgsrc to have
several Terraform versions installed at the same time and that we
package all relevant versions in order to update existing Terraform
code to newer Terraform and/or OpenTofu (so it should be possible to
update from Terraform 0.12 to latest Terraform and/or OpenTofu).
I have mostly used Terraform 0.14 at $DAYJOB, tried to updates to newer
Terraform 1.x but definitely I need to relook at Terraform 0.12 and
0.13.
> my plan was also to submit a PR to hashicorp to get netbsd added as
> target for the AWS provider (they currently also natively build open and
> freebsd here as well) once pkgsrc has been updated. selfishly this
> would allow me to use netbsd as my primary workstation for my work, and
> hopefully it'd be helpful to others too.
> [...]
Thanks!
You can also install Terraform providers that are packaged in pkgsrc
(so there should be no need to pick up precompiled binaries from
registry).
If noone will beat me I hope to complete the work in the next weeks of
missed old Terraform versions in pkgsrc-wip, relook at
wip/terraform/version.mk and do some test of full updates from 0.12 to
1.x and OpenTofu. And then share all of that here too with a possible
proposal! :)
Thank you!
Home |
Main Index |
Thread Index |
Old Index