Browse Source
Fixes various issues in vSphere Terraform code (#8178)
Fixes various issues in vSphere Terraform code (#8178)
* Fixes various issues in vSphere Terraform code Provided to address various shortcomings and to fix the following issue in upstream Kubespray: https://github.com/kubernetes-sigs/kubespray/issues/8176 * Resolves Terraform formatting issues * Sets default prefix to human-readable name * Documents new default prefix in READMEpull/8190/head
Lars Larsson
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 87 additions and 53 deletions
Split View
Diff Options
-
28contrib/terraform/vsphere/README.md
-
15contrib/terraform/vsphere/default.tfvars
-
4contrib/terraform/vsphere/main.tf
-
16contrib/terraform/vsphere/modules/kubernetes-cluster/main.tf
-
11contrib/terraform/vsphere/modules/kubernetes-cluster/output.tf
-
2contrib/terraform/vsphere/modules/kubernetes-cluster/templates/cloud-init.tmpl
-
3contrib/terraform/vsphere/modules/kubernetes-cluster/variables.tf
-
2contrib/terraform/vsphere/output.tf
-
59contrib/terraform/vsphere/variables.tf
@ -1,13 +1,16 @@ |
|||
output "master_ip" { |
|||
value = { |
|||
for instance in vsphere_virtual_machine.master : |
|||
instance.name => instance.default_ip_address |
|||
for name, machine in var.machines : |
|||
name => machine.ip |
|||
if machine.node_type == "master" |
|||
} |
|||
} |
|||
|
|||
output "worker_ip" { |
|||
value = { |
|||
for instance in vsphere_virtual_machine.worker : |
|||
instance.name => instance.default_ip_address |
|||
for name, machine in var.machines : |
|||
name => machine.ip |
|||
if machine.node_type == "worker" |
|||
} |
|||
} |
|||
|
Write
Preview
Loading…
Cancel
Save