Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak committed Oct 22, 2019
1 parent 0b853bf commit d0815f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ locals {
install_ingress = var.install_ingress
create_external_nlb = var.create_external_nlb ? 1 : 0
registration_command = var.registration_command
rancher_password = var.rancher_password
}

resource "random_password" "k3s_cluster_secret" {
Expand Down Expand Up @@ -103,6 +104,6 @@ EOF

resource "rancher2_bootstrap" "admin" {
provider = rancher2.bootstrap
password = var.rancher_password
password = local.rancher_password
depends_on = [null_resource.wait_for_rancher]
}
4 changes: 3 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
variable "rancher_password" {
type = string
type = string
default = ""
description = "Password to set for admin user during bootstrap of Rancher Server"
}

variable "rancher_version" {
Expand Down

0 comments on commit d0815f5

Please sign in to comment.