Skip to content

Commit 3362618

Browse files
authored
Merge pull request #16 from winlinuxmatt/mbarnes/add_documentation
documentation
2 parents a5d63bf + 65ca1b2 commit 3362618

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

cluster.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,25 @@ resource "null_resource" "run_custom_script" {
183183
]
184184
}
185185

186+
# # Run custom script for further configuration.
187+
# resource "null_resource" "run_custom_script" {
188+
# provisioner "local-exec" {
189+
# command = <<EOT
190+
# mkdir -p ~/.kube && mkdir -p ~/.talos
191+
# terraform output -raw kubeconfig > ~/.kube/config
192+
# terraform output -raw talosconfig > ~/.talos/config
193+
# chmod 600 ~/.kube/config ~/.talos/config
194+
# EOT
195+
# }
196+
# triggers = {
197+
# kubeconfig = try(talos_cluster_kubeconfig.kubeconfig.kubeconfig_raw, "")
198+
# talosconfig = try(data.talos_client_configuration.talosconfig.talos_config, "")
199+
# }
200+
# depends_on = [
201+
# talos_cluster_kubeconfig.kubeconfig,
202+
# data.talos_client_configuration.talosconfig,
203+
# data.talos_cluster_health.health
204+
# ]
205+
# }
206+
186207

0 commit comments

Comments
 (0)