diff --git a/modules/dns/gcp/records.tf b/modules/dns/gcp/records.tf index 75e1246c33..e0882d68a4 100644 --- a/modules/dns/gcp/records.tf +++ b/modules/dns/gcp/records.tf @@ -15,24 +15,6 @@ resource "google_dns_record_set" "ingress-external" { } # Etcd -resource "google_dns_record_set" "etcd_srv_discover" { - count = "${var.etcd_dns_enabled ? 1 : 0}" - name = "${var.tls_enabled ? "_etcd-server-ssl._tcp.${var.base_domain}" : "_etcd-server._tcp.${var.base_domain}"}." - type = "SRV" - managed_zone = "${var.managed_zone_name}" - rrdatas = ["${formatlist("0 0 2380 %s", google_dns_record_set.etc_a_node.*.name)}"] - ttl = "300" -} - -resource "google_dns_record_set" "etcd_srv_client" { - count = "${var.etcd_dns_enabled ? 1 : 0}" - name = "${var.tls_enabled ? "_etcd-client-ssl._tcp.${var.base_domain}" : "_etcd-client._tcp.${var.base_domain}"}." - type = "SRV" - managed_zone = "${var.managed_zone_name}" - rrdatas = ["${formatlist("0 0 2379 %s", google_dns_record_set.etc_a_node.*.name)}"] - ttl = "60" -} - resource "google_dns_record_set" "etc_a_node" { count = "${var.etcd_dns_enabled ? var.etcd_instance_count : 0}" type = "A" diff --git a/modules/gcp/etcd/ignition.tf b/modules/gcp/etcd/ignition.tf index ce1c1d7efa..40be7da9d9 100644 --- a/modules/gcp/etcd/ignition.tf +++ b/modules/gcp/etcd/ignition.tf @@ -3,7 +3,7 @@ data "ignition_config" "etcd" { systemd = [ "${data.ignition_systemd_unit.locksmithd.*.id[count.index]}", - "${data.ignition_systemd_unit.etcd3.*.id[count.index]}", + "${var.ign_etcd_dropin_id_list[count.index]}", ] files = [ @@ -144,33 +144,3 @@ EOF }, ] } - -data "ignition_systemd_unit" "etcd3" { - count = "${length(var.external_endpoints) == 0 ? var.instance_count : 0}" - name = "etcd-member.service" - enable = true - - dropin = [ - { - name = "40-etcd-cluster.conf" - - content = <