Skip to content

Commit 327aee7

Browse files
enhancement: added machine placement location
1 parent 595173c commit 327aee7

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This repository provides the functionality to deploy the github actions runner o
1414
| `hetzner_machine_os` | string | "debian-10" | Defines the machine operating system to be installed. |
1515
| `hetzner_additional_public_key_ids` | []string | [] | Adds public keys to the server that are already registered with hetzner |
1616
| `hetzner_machine_additional_packages` | string | "" | Defines additional packages that must be installed on the machine. Each package name must be separated by a space ` `. |
17+
| `hetzner_machine_location` | string | nbg1 | Specifies the location of the data center where the machine is to be deployed. |
1718
| `github_actions_runner_count` | number | 1 | Defines the number of runners to be provided. This option is equal to Machines at hetzner. |
1819
| `github_actions_runner_labels` | string | "" | Defines a list of labels used to identify the runners. The list is divided by separating the individual entries with `,`. |
1920
| `github_actions_runner_replace_existing` | bool | false | Specifies whether to replace existing Github action runners with the same name. |

servers.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resource "hcloud_server" "github_runner" {
33
name = format("%s-%s-%s-%d", "github-runner", var.hetzner_machine_os, random_uuid.hetzner_machine.result, count.index + 1)
44
server_type = var.hetzner_machine_type
55
image = var.hetzner_machine_os
6+
location = var.hetzner_machine_location
67
ssh_keys = concat([hcloud_ssh_key.admin_ssh_key.id], var.hetzner_additional_public_key_ids)
78

89
connection {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ variable hetzner_machine_additional_packages {
5858
type = string
5959
}
6060

61+
variable hetzner_machine_location {
62+
description = "Specifies the location of the data center where the machine is to be deployed."
63+
default = "nbg1"
64+
type = string
65+
}
66+
6167
//
6268

6369
variable "github_actions_runner_count" {

0 commit comments

Comments
 (0)