forked from fvumbaca/terraform-proxmox-k3s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
49 lines (37 loc) · 1 KB
/
outputs.tf
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
output "k3s_db_password" {
value = random_password.k3s-master-db-password.result
sensitive = true
}
output "k3s_db_name" {
value = local.support_node_settings.db_name
}
output "k3s_db_user" {
value = local.support_node_settings.db_user
}
output "k3s_db_host" {
value = "${local.support_node_ip}:3306"
}
output "root_db_password" {
value = random_password.support-db-password.result
sensitive = true
}
output "support_node_ip" {
value = local.support_node_ip
}
output "support_node_user" {
value = local.support_node_settings.user
}
output "master_node_ips" {
value = local.master_node_ips
}
output "k3s_server_token" {
value = random_password.k3s-server-token.result
sensitive = true
}
output "k3s_master_node_ips" {
value = local.master_node_ips
}
output "k3s_kubeconfig" {
value = replace(base64decode(replace(data.external.kubeconfig.result.kubeconfig, " ", "")), "server: https://127.0.0.1:6443", "server: https://${local.support_node_ip}:6443")
sensitive = true
}