Infrastructure as code for TL Forge
https://tlforge.dev/
- HCL 100%
| modules/runner | ||
| .gitignore | ||
| .terraform.lock.hcl | ||
| cloud-init.yaml | ||
| instance.tf | ||
| LICENSE | ||
| mise.toml | ||
| networking.tf | ||
| policies.tf | ||
| README.md | ||
| runners.tf | ||
| secrets.tf | ||
| terraform.tf | ||
| variables.tf | ||
TL Forge — Infrastructure
This repository contains infrastructure as code configuration for TL Forge running on Scaleway using Forgejo.
Dependencies
$ brew install mise
$ mise install
Setup
-
Create a
mise.local.tomlfile containing your Scaleway access key, secret key, organization ID and project ID:[env] SCW_ACCESS_KEY = "..." SCW_SECRET_KEY = "..." SCW_DEFAULT_ORGANIZATION_ID = "..." SCW_DEFAULT_PROJECT_ID = "..." -
Create a
terraform.tfvarsfile containing the runners:runners = [ { uuid = "...", token = "..." } ] -
Initialize the project:
$ mise run init
Plan and apply
Run the following to plan and apply any changes to the infrastructure.
$ mise run plan
$ mise run apply
Maintenance
Running Ansible
On the main instance
$ ansible-pull -U https://tlforge.dev/tlsquared/tlforge-ansible.git
On a runner instance
$ ansible-pull -U https://tlforge.dev/tlsquared/tlforge-ansible.git tlforge-runner.yml