From e61fb42c41997d4479415b3359b453adf1dc02c9 Mon Sep 17 00:00:00 2001 From: mhoffm Date: Mon, 21 Jun 2021 20:04:13 +0200 Subject: [PATCH] remove files that terraform cannot parse --- ...nic-installer%modules%vmware%etcd%nodes.tf | 26 ----------- ...nic-installer%modules%vmware%node%nodes.tf | 43 ------------------- ...nic-installer%platforms%azure%bootstrap.tf | 22 ---------- ...%terraform-azurerm-kubernetes%bootstrap.tf | 22 ---------- 4 files changed, 113 deletions(-) delete mode 100644 example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%etcd%nodes.tf delete mode 100644 example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%node%nodes.tf delete mode 100644 example/real_world_stuff/coreos/coreos%tectonic-installer%platforms%azure%bootstrap.tf delete mode 100644 example/real_world_stuff/coreos/coreos%terraform-azurerm-kubernetes%bootstrap.tf diff --git a/example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%etcd%nodes.tf b/example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%etcd%nodes.tf deleted file mode 100644 index 95877c6..0000000 --- a/example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%etcd%nodes.tf +++ /dev/null @@ -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])}" - } -} diff --git a/example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%node%nodes.tf b/example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%node%nodes.tf deleted file mode 100644 index 903f15f..0000000 --- a/example/real_world_stuff/coreos/coreos%tectonic-installer%modules%vmware%node%nodes.tf +++ /dev/null @@ -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", - ] - } -} diff --git a/example/real_world_stuff/coreos/coreos%tectonic-installer%platforms%azure%bootstrap.tf b/example/real_world_stuff/coreos/coreos%tectonic-installer%platforms%azure%bootstrap.tf deleted file mode 100644 index 29b7d82..0000000 --- a/example/real_world_stuff/coreos/coreos%tectonic-installer%platforms%azure%bootstrap.tf +++ /dev/null @@ -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}" -} diff --git a/example/real_world_stuff/coreos/coreos%terraform-azurerm-kubernetes%bootstrap.tf b/example/real_world_stuff/coreos/coreos%terraform-azurerm-kubernetes%bootstrap.tf deleted file mode 100644 index 0a168a4..0000000 --- a/example/real_world_stuff/coreos/coreos%terraform-azurerm-kubernetes%bootstrap.tf +++ /dev/null @@ -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}" -}