Skip to content

Commit

Permalink
removed customize block
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <kron82@gmail.com>
  • Loading branch information
kron4eg committed May 27, 2019
1 parent 15802cb commit 26e6f3e
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions examples/terraform/vsphere/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,16 @@ data "vsphere_virtual_machine" "template" {
datacenter_id = "${data.vsphere_datacenter.dc.id}"
}

data "vsphere_host" "host" {
name = "10.2.50.3"
datacenter_id = "${data.vsphere_datacenter.dc.id}"
}

resource "vsphere_virtual_machine" "control_plane" {
count = 1
name = "${var.cluster_name}-cp-${count.index+1}"
count = 3
name = "${var.cluster_name}-cp-${count.index + 1}"
resource_pool_id = "${data.vsphere_compute_cluster.cluster.resource_pool_id}"
datastore_id = "${data.vsphere_datastore.datastore.id}"
num_cpus = 2
memory = 2048
guest_id = "${data.vsphere_virtual_machine.template.guest_id}"
scsi_type = "${data.vsphere_virtual_machine.template.scsi_type}"
wait_for_guest_net_timeout = 5
host_system_id = "${data.vsphere_host.host.id}"

network_interface {
network_id = "${data.vsphere_network.network.id}"
Expand All @@ -80,14 +74,5 @@ resource "vsphere_virtual_machine" "control_plane" {

clone {
template_uuid = "${data.vsphere_virtual_machine.template.id}"

customize {
linux_options {
host_name = "${var.cluster_name}-cp-${count.index+1}"
domain = "test.local"
}

network_interface {}
}
}
}

0 comments on commit 26e6f3e

Please sign in to comment.