Merge pull request 'refactor: parameterise rancher api_url and pin rancher2 to ~> 14.0' (#7) from benvin/provider-plumbing into main
ci/woodpecker/push/apply Pipeline was successful
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
@@ -3,7 +3,7 @@ generate "backend" {
|
||||
if_exists = "overwrite"
|
||||
contents = <<EOF
|
||||
provider "rancher2" {
|
||||
api_url = "https://${path_relative_to_include()}"
|
||||
api_url = var.rancher_url
|
||||
token_key = var.rancher_token
|
||||
}
|
||||
|
||||
@@ -20,6 +20,13 @@ variable "rancher_token" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
# Defaults to the environment's public URL; an exported TF_VAR_rancher_url
|
||||
# takes precedence over terragrunt inputs.
|
||||
variable "rancher_url" {
|
||||
type = string
|
||||
default = "https://${path_relative_to_include()}"
|
||||
}
|
||||
|
||||
terraform {
|
||||
backend "consul" {
|
||||
address = "https://consul.service.consul"
|
||||
|
||||
@@ -3,7 +3,7 @@ terraform {
|
||||
required_providers {
|
||||
rancher2 = {
|
||||
source = "rancher/rancher2"
|
||||
version = ">= 5.0.0"
|
||||
version = "~> 14.0"
|
||||
}
|
||||
vault = {
|
||||
source = "hashicorp/vault"
|
||||
|
||||
Reference in New Issue
Block a user