Skip to content

Commit

Permalink
Merge pull request #31 from Mirantis/win_admin_pass_missing
Browse files Browse the repository at this point in the history
add tf files that were not included in WinRM update
  • Loading branch information
jim-docker authored Jul 17, 2020
2 parents c8cb8e6 + d8c8e0a commit be30fa1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
14 changes: 7 additions & 7 deletions examples/terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,45 +50,45 @@ module "windows_workers" {
security_group_id = module.common.security_group_id
image_id = module.common.windows_2019_image_id
kube_cluster_tag = module.common.kube_cluster_tag
ssh_key = var.cluster_name
instance_profile_name = module.common.instance_profile_name
worker_type = var.worker_type
windows_administrator_password = var.windows_administrator_password
}

locals {
managers = [
for host in module.masters.machines : {
address = host.public_ip
role = host.tags["Role"]
privateInterface = "ens5"
ssh = {
user = "ubuntu"
keyPath = "./ssh_keys/${var.cluster_name}.pem"
}
role = host.tags["Role"]
privateInterface = "ens5"
}
]
workers = [
for host in module.workers.machines : {
address = host.public_ip
role = host.tags["Role"]
privateInterface = "ens5"
ssh = {
user = "ubuntu"
keyPath = "./ssh_keys/${var.cluster_name}.pem"
}
role = host.tags["Role"]
privateInterface = "ens5"
}
]
windows_workers = [
for host in module.windows_workers.machines : {
address = host.public_ip
role = host.tags["Role"]
privateInterface = "Ethernet 2"
winRM = {
user = "Administrator"
password = var.windows_administrator_password
useHTTPS = true
insecure = true
}
role = host.tags["Role"]
privateInterface = "Ethernet 2"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/terraform/aws/modules/windows_worker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ locals {
subnet_count = length(var.subnet_ids)
}


resource "aws_instance" "ucp_worker" {
count = var.worker_count

Expand Down Expand Up @@ -84,6 +83,7 @@ Start-Service WinRM
</powershell>
EOF


lifecycle {
ignore_changes = [ami]
}
Expand Down
4 changes: 0 additions & 4 deletions examples/terraform/aws/modules/windows_worker/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ variable "image_id" {}

variable "kube_cluster_tag" {}

variable "ssh_key" {
description = "SSH key name"
}

variable "worker_count" {
default = 0
}
Expand Down
3 changes: 3 additions & 0 deletions examples/terraform/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ variable "master_volume_size" {
variable "worker_volume_size" {
default = 100
}

variable "windows_administrator_password" {
}

0 comments on commit be30fa1

Please sign in to comment.