mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-02-02 23:25:59 +00:00
Add talosconfig to Terraform output
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@ terraform.tfstate.backup
|
|||||||
|
|
||||||
# Ignore output kubeconfig (contains secrets)
|
# Ignore output kubeconfig (contains secrets)
|
||||||
kubeconfig
|
kubeconfig
|
||||||
|
talosconfig
|
||||||
|
|
||||||
# Ignore docker environment files (contains secrets)
|
# Ignore docker environment files (contains secrets)
|
||||||
.env
|
.env
|
||||||
|
|||||||
@@ -180,6 +180,18 @@ resource "local_file" "kubeconfig" {
|
|||||||
depends_on = [ talos_cluster_kubeconfig.kube ]
|
depends_on = [ talos_cluster_kubeconfig.kube ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data "talos_client_configuration" "talosconfig" {
|
||||||
|
cluster_name = "homeprod"
|
||||||
|
client_configuration = talos_machine_secrets.kube.client_configuration
|
||||||
|
nodes = [proxmox_virtual_environment_vm.kube.ipv4_addresses[7][0]]
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "local_file" "talosconfig" {
|
||||||
|
content = "${data.talos_client_configuration.talosconfig.talos_config}"
|
||||||
|
filename = "${path.module}/talosconfig"
|
||||||
|
depends_on = [ data.talos_client_configuration.talosconfig ]
|
||||||
|
}
|
||||||
|
|
||||||
# TODO : Wait for talos_cluster_kubeconfig...
|
# TODO : Wait for talos_cluster_kubeconfig...
|
||||||
resource "helm_release" "cilium" {
|
resource "helm_release" "cilium" {
|
||||||
name = "cilium"
|
name = "cilium"
|
||||||
|
|||||||
Reference in New Issue
Block a user