Skip to content

Commit

Permalink
feat: add kube and talos config in home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Dupain committed Nov 11, 2024
1 parent 5d86626 commit 68e81a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ resource "local_file" "kube_config" {
file_permission = "0600"
}

resource "local_file" "kube_config_home" {
content = module.talos_k8s.kube_config.kubeconfig_raw
filename = pathexpand("~/.kube/${var.cluster.name}.yaml")
file_permission = "0600"
}

resource "local_file" "talos_config_home" {
content = module.talos_k8s.talos_config.talos_config
filename = pathexpand("~/.talos/${var.cluster.name}.yaml")
file_permission = "0600"
}

output "cluster_name" {
description = "Retrieves the name for a k8s Talos cluster"
value = var.cluster.name
Expand Down

0 comments on commit 68e81a9

Please sign in to comment.