Skip to content

Commit

Permalink
fmt and remove numeric value from bootstrap VM
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1x committed Mar 25, 2019
1 parent fa713b4 commit bbb0f9b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions upi/vsphere/bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "vsphere_virtual_machine" "template" {
}

resource "vsphere_virtual_machine" "vm" {
name = "bootstrap1"
name = "${var.cluster_id}-bootstrap"
resource_pool_id = "${var.resource_pool_id}"
datastore_id = "${data.vsphere_datastore.datastore.id}"
num_cpus = "${var.num_cpus}"
Expand All @@ -46,8 +46,6 @@ resource "vsphere_virtual_machine" "vm" {
}

vapp {
properties {
"guestinfo.coreos.config.data" =
}
properties {}
}
}
2 changes: 1 addition & 1 deletion upi/vsphere/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module "network" {
source = "./network"

# TODO Pass in and check the base domain and cluster domain to look for A records
machine_cidr = "${var.machine_cidr}"
machine_cidr = "${var.machine_cidr}"
master_count = "${var.master_count}"
worker_count = "${var.worker_count}"
base_domain = "${var.base_domain}"
Expand Down
2 changes: 1 addition & 1 deletion upi/vsphere/masters/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data "vsphere_virtual_machine" "template" {

resource "vsphere_virtual_machine" "vm" {
count = "${var.master_count}"
name = "master-${count.index + 1}"
name = "${var.cluster_id}-master-${count.index + 1}"
resource_pool_id = "${var.resource_pool_id}"
datastore_id = "${data.vsphere_datastore.datastore.id}"
num_cpus = "${var.num_cpus}"
Expand Down
2 changes: 1 addition & 1 deletion upi/vsphere/network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "external" "ping" {
program = ["bash", "${path.root}/network/cidr_to_ip.sh"]

query = {
cidr = "${var.machine_cidr}"
cidr = "${var.machine_cidr}"
master_count = "${var.master_count}"
worker_count = "${var.worker_count}"
}
Expand Down
2 changes: 1 addition & 1 deletion upi/vsphere/workers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data "vsphere_virtual_machine" "template" {

resource "vsphere_virtual_machine" "vm" {
count = "${var.worker_count}"
name = "worker-${count.index + 1}"
name = "${var.cluster_id}-worker-${count.index + 1}"
resource_pool_id = "${var.resource_pool_id}"
datastore_id = "${data.vsphere_datastore.datastore.id}"
num_cpus = "${var.num_cpus}"
Expand Down

0 comments on commit bbb0f9b

Please sign in to comment.