Terraform modules for Talos OS #5606
Replies: 3 comments 2 replies
-
thanks, Ilya! I noticed that secrets module is generating secrets without Talos machinery package (see Example here: https://pkg.go.dev/github.com/talos-systems/talos/pkg/[email protected]/config/types/v1alpha1/generate). I wonde if that is something hard to integrate with Terraform? |
Beta Was this translation helpful? Give feedback.
-
@smira, at the moment, I know two ways of integration - this is to use directly talosctl from the Terraform module, but this will require a user-installed utility and a large number of operations with the file system (I left this approach in favor of terraform-managed resources). The second option is to write a Terraform provider that works with the Go talosctl library or does similar things without it. |
Beta Was this translation helpful? Give feedback.
-
I have allocated the userdata generation module into a separate module. Now you can use the resulting configuration in any cloud that supports VM initialization via user-data! https://registry.terraform.io/modules/ilpozzd/vm-userdata/talos/latest Also updated all modules to a new version, which also uses a separate module for user-data |
Beta Was this translation helpful? Give feedback.
-
I have made Terraform modules that fully describe the Talos OS 1.0.x configuration and deploy virtual machines as a single cluster in the vSphere corporate cloud.
Cluster Module - https://github.com/ilpozzd/terraform-talos-vsphere-cluster
Virtual Machine Module - https://github.com/ilpozzd/terraform-talos-vsphere-vm
Terraform-managed secrets module (generates all secret data as certs, ids, hashes e.g.) - https://github.com/ilpozzd/terraform-talos-secrets
All modules also available in Terraform Registry
And Terragrunt example to multi-region infrastructure - https://github.com/ilpozzd/talos-vsphere-cluster-terragrunt-example
Beta Was this translation helpful? Give feedback.
All reactions