remove files that terraform cannot parse
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
resource "vsphere_virtual_machine" "etcd_node" {
|
||||
count = "${length(var.external_endpoints) == 0 ? var.instance_count : 0}"
|
||||
name = "${var.hostname["${count.index}"]}"
|
||||
datacenter = "${var.vmware_datacenters["${count.index}"]}"
|
||||
cluster = "${var.vmware_clusters["${count.index}"]}"
|
||||
resource_pool = "${var.vmware_resource_pool["${count.index}"]}"
|
||||
vcpu = "${var.vm_vcpu}"
|
||||
memory = "${var.vm_memory}"
|
||||
folder = "${var.vmware_folder}"
|
||||
domain = "${var.base_domain}"
|
||||
|
||||
network_interface {
|
||||
label = "${var.vm_network_labels["${count.index}"]}"
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore = "${var.vm_disk_datastores["${count.index}"]}"
|
||||
template = "${var.vm_disk_template_folder}/${var.vm_disk_template}"
|
||||
type = "thin"
|
||||
}
|
||||
|
||||
custom_configuration_parameters {
|
||||
guestinfo.coreos.config.data.encoding = "base64"
|
||||
guestinfo.coreos.config.data = "${base64encode(data.ignition_config.etcd.*.rendered[count.index])}"
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
resource "vsphere_virtual_machine" "node" {
|
||||
count = "${var.instance_count}"
|
||||
name = "${var.hostname["${count.index}"]}"
|
||||
datacenter = "${var.vmware_datacenters["${count.index}"]}"
|
||||
cluster = "${var.vmware_clusters["${count.index}"]}"
|
||||
resource_pool = "${var.vmware_resource_pool["${count.index}"]}"
|
||||
vcpu = "${var.vm_vcpu}"
|
||||
memory = "${var.vm_memory}"
|
||||
folder = "${var.vmware_folder}"
|
||||
domain = "${var.base_domain}"
|
||||
|
||||
network_interface {
|
||||
label = "${var.vm_network_labels["${count.index}"]}"
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore = "${var.vm_disk_datastores["${count.index}"]}"
|
||||
template = "${var.vm_disk_template_folder}/${var.vm_disk_template}"
|
||||
type = "thin"
|
||||
}
|
||||
|
||||
custom_configuration_parameters {
|
||||
guestinfo.coreos.config.data.encoding = "base64"
|
||||
guestinfo.coreos.config.data = "${base64encode(data.ignition_config.node.*.rendered[count.index])}"
|
||||
}
|
||||
|
||||
connection {
|
||||
type = "ssh"
|
||||
user = "core"
|
||||
private_key = "${file(var.private_key != "" ? pathexpand(var.private_key) : "/dev/null")}"
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
content = "${var.kubeconfig}"
|
||||
destination = "$HOME/kubeconfig"
|
||||
}
|
||||
|
||||
provisioner "remote-exec" {
|
||||
inline = [
|
||||
"sudo mv /home/core/kubeconfig /etc/kubernetes/kubeconfig",
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
locals {
|
||||
"bootstrapping_host" = "${var.tectonic_azure_private_cluster ?
|
||||
module.vnet.master_private_ip_addresses[0] :
|
||||
module.vnet.api_fqdn}"
|
||||
}
|
||||
|
||||
module "bootstrapper" {
|
||||
source = "../../modules/bootstrap-ssh"
|
||||
|
||||
_dependencies = [
|
||||
"${module.masters.master_vm_ids}",
|
||||
"${module.etcd.etcd_vm_ids}",
|
||||
"${module.etcd_certs.id}",
|
||||
"${module.bootkube.id}",
|
||||
"${module.tectonic.id}",
|
||||
"${module.flannel_vxlan.id}",
|
||||
"${module.calico.id}",
|
||||
"${module.canal.id}",
|
||||
]
|
||||
|
||||
bootstrapping_host = "${local.bootstrapping_host}"
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
locals {
|
||||
"bootstrapping_host" = "${var.tectonic_azure_private_cluster ?
|
||||
module.vnet.master_private_ip_addresses[0] :
|
||||
module.vnet.api_fqdn}"
|
||||
}
|
||||
|
||||
module "bootstrapper" {
|
||||
source = "github.com/coreos/tectonic-installer//modules/bootstrap-ssh?ref=0a22c73d39f67ba4bb99106a9e72322a47179736"
|
||||
|
||||
_dependencies = [
|
||||
"${module.masters.master_vm_ids}",
|
||||
"${module.etcd.etcd_vm_ids}",
|
||||
"${module.etcd_certs.id}",
|
||||
"${module.bootkube.id}",
|
||||
"${module.tectonic.id}",
|
||||
"${module.flannel_vxlan.id}",
|
||||
"${module.calico.id}",
|
||||
"${module.canal.id}",
|
||||
]
|
||||
|
||||
bootstrapping_host = "${local.bootstrapping_host}"
|
||||
}
|
||||
Reference in New Issue
Block a user