Skip to content

Conversation

@Excellencedev
Copy link

@Excellencedev Excellencedev commented Nov 23, 2025

Description

This PR adds a template example for the Hetzner Cloud Sever.

This video shows the provisioning of multiple hetzner instances in coder with dynamic param enabled, running simultaneously and shown in the Hetzner console, checking labels on both the OS Filesystem and on the hetzner console and then shutting down through coder demonstrating clean up on hetzner and deleting workspaces without errors
DEMO VIDEO: https://drive.google.com/file/d/1JkhjszCRM9K27XDlMi_2nXtJosoflns_/view?usp=sharing

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Template Information

Path: registry/Excellencedev/templates/hetzner-linux

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

/closes #209
/claim #209

@Excellencedev

This comment was marked as abuse.

@Excellencedev

This comment was marked as abuse.

@Excellencedev

This comment was marked as abuse.

@matifali
Copy link
Member

matifali commented Dec 2, 2025

Hi @Excellencedev, there is an existing PR #426 addressing the same issue. I will let @DevelopmentCats take a look at that first, and if that does not solve the issue, we can happily review your PR. Thank you.

@Excellencedev

This comment was marked as abuse.

@Excellencedev

This comment was marked as abuse.

@Excellencedev

This comment was marked as abuse.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Hetzner Cloud server template to the Coder registry, enabling users to provision Linux-based workspaces on Hetzner Cloud infrastructure with configurable server types and locations.

Key changes:

  • Terraform configuration for provisioning Hetzner Cloud servers with persistent volumes
  • Dynamic server type selection based on location availability
  • Cloud-init configuration for automated workspace setup

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
registry/Excellencedev/templates/hetzner-linux/main.tf Core Terraform configuration defining server resources, volumes, and Coder integration
registry/Excellencedev/templates/hetzner-linux/cloud-config.yaml.tftpl Cloud-init template for server initialization and Coder agent setup
registry/Excellencedev/templates/hetzner-linux/README.md Documentation describing template usage and prerequisites
registry/Excellencedev/README.md Author profile metadata for the registry
.icons/hetzner.svg Hetzner logo SVG for template branding
.github/typos.toml Added "hel" exception for Helsinki location code
registry/Excellencedev/templates/hetzner-linux/hetzner_server_types.json Server type metadata and location availability mapping

…ml.tftpl

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Excellencedev

This comment was marked as abuse.

@Excellencedev

This comment was marked as abuse.

@DevelopmentCats
Copy link
Contributor

I will go ahead and take a look and test this today since the other PR has been stale for a bit.

@DevelopmentCats
Copy link
Contributor

DevelopmentCats commented Dec 15, 2025

@Excellencedev Honestly everything works great here, but one thing you may want to add to the template readme, is a GFM Alert Warning about the workspace storage not being persistent when the workspace stops.

@Excellencedev

This comment was marked as abuse.

@DevelopmentCats DevelopmentCats enabled auto-merge (squash) December 16, 2025 13:52
@DevelopmentCats DevelopmentCats merged commit 96c5f32 into coder:main Dec 16, 2025
4 checks passed
@Excellencedev

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hetzner Cloud server template example

3 participants