From c2d092d50b754f17532e1dac55d3faff8998016c Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Thu, 28 Apr 2022 11:15:06 -0700 Subject: [PATCH] chore: allow configure token regen --- main.tf | 2 ++ variables.tf | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index a0269fb..4450458 100644 --- a/main.tf +++ b/main.tf @@ -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 @@ -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] } diff --git a/variables.tf b/variables.tf index 08f46f3..6524c50 100644 --- a/variables.tf +++ b/variables.tf @@ -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" } @@ -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 } \ No newline at end of file