b315698634
The provider api_url was hardcoded to the derived environment URL, leaving CI no way to point a plan at a different endpoint. The rancher2 constraint of >= 5.0.0 also permitted nine majors of drift against the 14.1.1 the lockfile resolves. - Add a generated variable "rancher_url" defaulting to the same https://${path_relative_to_include()} expression; the provider now reads var.rancher_url, so TF_VAR_rancher_url overrides without changing defaults. - Pin rancher/rancher2 to ~> 14.0 in modules/rancher/versions.tf.
14 lines
237 B
Terraform
14 lines
237 B
Terraform
terraform {
|
|
required_version = ">= 1.10"
|
|
required_providers {
|
|
rancher2 = {
|
|
source = "rancher/rancher2"
|
|
version = "~> 14.0"
|
|
}
|
|
vault = {
|
|
source = "hashicorp/vault"
|
|
version = ">= 4.0.0"
|
|
}
|
|
}
|
|
}
|