File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments