https://github.com/netways/terraform-talos-openstack
A collection of Terraform resources for deploying Talos Linux to OpenStack.
https://github.com/netways/terraform-talos-openstack
opentofu talos terraform
Last synced: 4 months ago
JSON representation
A collection of Terraform resources for deploying Talos Linux to OpenStack.
- Host: GitHub
- URL: https://github.com/netways/terraform-talos-openstack
- Owner: NETWAYS
- License: cc0-1.0
- Created: 2024-08-22T12:42:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T13:25:09.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T04:04:32.134Z (about 1 year ago)
- Topics: opentofu, talos, terraform
- Language: HCL
- Homepage: https://nws.netways.de/
- Size: 9.77 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Talos Linux on OpenStack: Step by Step
This repository contains Terraform resources for bringing up a cluster of [Talos](https://talos.dev)
VMs on [OpenStack](https://openstack.org) using [Terraform](https://terraform.io) or
[OpenTofu](https://opentofu.org).
A step-by-step guide can be found on our blog:
- π¬π§ **English**: [Talos Linux on OpenStack: Step by Step](https://nws.netways.de/blog/2024/08/22/talos-linux-on-openstack-step-by-step/)
- π©πͺ **German**: [Talos Linux auf OpenStack: Schritt fΓΌr Schritt](https://nws.netways.de/de/blog/2024/08/22/talos-linux-auf-openstack-schritt-fuer-schritt/)
## Quick Start
> [!NOTE]
> If you are a NETWAYS Cloud customer and want to deploy Talos there, please see the resources
> on the `netways-cloud` branch [[Link](https://github.com/NETWAYS/terraform-talos-openstack/tree/netways-cloud)] for a tweaked version.
While we strongly encourage reading the whole step by step guide linked above, here's a primer on
how to get started with this repository.
1. Clone the repository and initialize Terraform.
```sh
git clone https://github.com/NETWAYS/terraform-talos-openstack
cd terraform-talos-openstack
terraform init
```
2. Configure the OpenStack provider in `main.tf`. For configuration options, see the
[official provider documentation](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs).
3. Let Terraform provision the resources.
```sh
terraform apply
```
4. Generate the Talos configuration(s). Use the Floating IP from the previous step's output.
```sh
talosctl gen secrets
talosctl gen config talos-on-openstack https://:6443 --with-secrets secrets.yaml
```
5. Let Terraform provision the resources again to apply Talos' configuration(s).
```sh
terraform apply
```
6. Bootstrap Kubernetes using `talosctl`.
```sh
talosctl bootstrap -e -n
```
## Questions and Support
Feel free to [open an issue](https://github.com/NETWAYS/terraform-talos-openstack/issues) using one of the issue templates available.
## License
The material published in this repository is licensed under the **Creative Commons Zero** license.
A copy can be found in the [`LICENSE`](./LICENSE) file in this repository.