-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathoutputs.tf
More file actions
98 lines (83 loc) · 3.38 KB
/
outputs.tf
File metadata and controls
98 lines (83 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
output "talosconfig" {
description = "Raw Talos OS configuration file used for cluster access and management."
value = local.talosconfig
sensitive = true
}
output "kubeconfig" {
description = "Raw kubeconfig file for authenticating with the Kubernetes cluster."
value = local.kubeconfig
sensitive = true
}
output "kubeconfig_data" {
description = "Structured kubeconfig data, suitable for use with other Terraform providers or tools."
value = local.kubeconfig_data
sensitive = true
}
output "talosconfig_data" {
description = "Structured Talos configuration data, suitable for use with other Terraform providers or tools."
value = local.talosconfig_data
sensitive = true
}
output "talos_client_configuration" {
description = "Detailed configuration data for the Talos client."
value = data.talos_client_configuration.this
}
output "talos_machine_configurations_control_plane" {
description = "Talos machine configurations for all control plane nodes."
value = data.talos_machine_configuration.control_plane
sensitive = true
}
output "talos_machine_configurations_worker" {
description = "Talos machine configurations for all worker nodes."
value = data.talos_machine_configuration.worker
sensitive = true
}
output "control_plane_private_ipv4_list" {
description = "List of private IPv4 addresses assigned to control plane nodes."
value = local.control_plane_private_ipv4_list
}
output "control_plane_public_ipv4_list" {
description = "List of public IPv4 addresses assigned to control plane nodes."
value = local.control_plane_public_ipv4_list
}
output "control_plane_public_ipv6_list" {
description = "List of public IPv6 addresses assigned to control plane nodes."
value = local.control_plane_public_ipv6_list
}
output "worker_private_ipv4_list" {
description = "List of private IPv4 addresses assigned to worker nodes."
value = local.worker_private_ipv4_list
}
output "worker_public_ipv4_list" {
description = "List of public IPv4 addresses assigned to worker nodes."
value = local.worker_public_ipv4_list
}
output "worker_public_ipv6_list" {
description = "List of public IPv6 addresses assigned to worker nodes."
value = local.worker_public_ipv6_list
}
output "cilium_encryption_info" {
description = "Cilium traffic encryption settings, including current state and IPsec details if enabled."
value = {
encryption_enabled = var.cilium_encryption_enabled
encryption_type = var.cilium_encryption_type
ipsec = local.cilium_ipsec_enabled ? {
current_key_id = var.cilium_ipsec_key_id
next_key_id = local.cilium_ipsec_key_config["next_id"]
algorithm = var.cilium_ipsec_algorithm
key_size_bits = var.cilium_ipsec_key_size
secret_name = local.cilium_ipsec_keys_manifest.metadata["name"]
namespace = local.cilium_ipsec_keys_manifest.metadata["namespace"]
} : {}
}
}
output "kube_api_load_balancer" {
description = "Details about the Kubernetes API load balancer"
value = var.kube_api_load_balancer_enabled ? {
id = hcloud_load_balancer.kube_api[0].id
name = local.kube_api_load_balancer_name
public_ipv4 = local.kube_api_load_balancer_public_ipv4
public_ipv6 = local.kube_api_load_balancer_public_ipv6
private_ipv4 = local.kube_api_load_balancer_private_ipv4
} : null
}