Add IPv6 addresses
This commit is contained in:
+4
-4
@@ -9,6 +9,10 @@ data "dns_a_record_set" "cluster_api" {
|
|||||||
host = local.cluster_fqdn
|
host = local.cluster_fqdn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data "dns_aaaa_record_set" "cluster_api" {
|
||||||
|
host = local.cluster_fqdn
|
||||||
|
}
|
||||||
|
|
||||||
data "dns_a_record_set" "guests" {
|
data "dns_a_record_set" "guests" {
|
||||||
for_each = [ for guest in var.vm_guests: "${guest.name}.${var.local_domain}" ]
|
for_each = [ for guest in var.vm_guests: "${guest.name}.${var.local_domain}" ]
|
||||||
host = each.value
|
host = each.value
|
||||||
@@ -19,8 +23,4 @@ data "dns_aaaa_record_set" "guests" {
|
|||||||
host = each.value
|
host = each.value
|
||||||
}
|
}
|
||||||
|
|
||||||
data "dns_aaaa_record_set" "cluster_api" {
|
|
||||||
host = local.cluster_fqdn
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -4,8 +4,8 @@ locals {
|
|||||||
talos_version = [ for version in data.talos_image_factory_versions.this.talos_versions : version if version == var.talos_version][0]
|
talos_version = [ for version in data.talos_image_factory_versions.this.talos_versions : version if version == var.talos_version][0]
|
||||||
cluster_fqdn = "${var.cluster_name}.${var.local_domain}"
|
cluster_fqdn = "${var.cluster_name}.${var.local_domain}"
|
||||||
cluster_endpoint = "https://${local.cluster_fqdn}:${var.cluster_api_port}"
|
cluster_endpoint = "https://${local.cluster_fqdn}:${var.cluster_api_port}"
|
||||||
cluster_api_ipv4_address = data.dns_a_record_set.cluster_api_ipv4_address.addrs[0]
|
cluster_api_ipv4_address = data.dns_a_record_set.cluster_api.addrs[0]
|
||||||
cluster_api_ipv6_address = data.dns_aaaa_record_set.cluster_api_ipv6_address.addrs[0]
|
cluster_api_ipv6_address = data.dns_aaaa_record_set.cluster_api.addrs[0]
|
||||||
machine_config_patches = { for guest in var.vm_guests: guest.name => [
|
machine_config_patches = { for guest in var.vm_guests: guest.name => [
|
||||||
templatefile("${path.root}/templates/talos_machine_config.yml.tftpl", {
|
templatefile("${path.root}/templates/talos_machine_config.yml.tftpl", {
|
||||||
hostname = guest.name
|
hostname = guest.name
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
ipv4_gateway = "10.96.10.254"
|
ipv4_gateway = "10.96.10.254"
|
||||||
ipv4_subnet_mask = 24
|
ipv4_subnet_mask = 24
|
||||||
ipv6_gateway = null
|
ipv6_gateway = "2600:4040:593d:8b10:6662:66ff:fe21:e9c4"
|
||||||
ipv4_nameservers = [
|
ipv4_nameservers = [
|
||||||
{address = "10.96.10.254"}
|
{address = "10.96.10.254"}
|
||||||
]
|
]
|
||||||
ipv6_nameservers = []
|
ipv6_nameservers = [
|
||||||
|
{address = "2600:4040:593d:8b10::53"}
|
||||||
|
]
|
||||||
local_domain = "balsillie.house"
|
local_domain = "balsillie.house"
|
||||||
search_domains = [
|
search_domains = [
|
||||||
"balsillie.net",
|
"balsillie.net",
|
||||||
@@ -13,4 +15,6 @@ search_domains = [
|
|||||||
ipv4_ntp_servers = [
|
ipv4_ntp_servers = [
|
||||||
"10.96.10.254"
|
"10.96.10.254"
|
||||||
]
|
]
|
||||||
ipv6_ntp_servers = []
|
ipv6_ntp_servers = [
|
||||||
|
"2600:4040:593d:8b10:6662:66ff:fe21:e9c4"
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user