Skip to content

Commit

Permalink
chore: allow configure token regen
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak committed Apr 28, 2022
1 parent a527e66 commit c2d092d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ locals {
registration_command = var.registration_command
rancher_password = var.rancher_password
rancher_features = var.rancher_features
rancher_token_update = var.rancher_token_update
use_route53 = var.use_route53 ? local.create_external_nlb : 0
subdomain = var.subdomain != null ? var.subdomain : var.name
rds_ca_cert_identifier = var.rds_ca_cert_identifier
Expand Down Expand Up @@ -122,5 +123,6 @@ resource "rancher2_bootstrap" "admin" {
count = local.install_rancher ? 1 : 0
provider = rancher2.bootstrap
initial_password = local.rancher_password
token_update = local.rancher_token_update
depends_on = [null_resource.wait_for_rancher]
}
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ variable "db_pass" {
}

variable "db_engine_version" {
default = "13.3"
default = "13.4"
type = string
description = "Engine Version for RDS Database"
}
Expand Down Expand Up @@ -329,4 +329,10 @@ variable "rancher_features" {
default = ""
description = "Comma-separated list of feature flags to enable in Rancher"
type = string
}

variable "rancher_token_update" {
default = false
description = "Regenerate admin token."
type = bool
}

0 comments on commit c2d092d

Please sign in to comment.