Skip to content

Commit 6bab8d4

Browse files
authored
Merge pull request #7 from colinmcdonald22/master
feat: configurable subnet IP CIDR range
2 parents 6ebcf78 + bf7b1d5 commit 6bab8d4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ variable "use_cloud_nat" {
6868
default = false
6969
}
7070

71+
variable "subnet_ip_cidr_range" {
72+
type = string
73+
description = "CIDR range to assign to subnet VM instances launch in."
74+
default = "10.0.1.0/24"
75+
}
76+
7177
variable "enable_debug" {
7278
type = bool
7379
description = "Enable debug messages of github-runner-autoscaler Cloud Run (WARNING: secrets will be leaked in log files)."

vpc.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resource "google_compute_network" "vpc_network" {
88
resource "google_compute_subnetwork" "subnetwork" {
99
name = "spot-runner-subnetwork"
1010
description = "The subnetwork the ephemeral GitHub runner instances will join"
11-
ip_cidr_range = "10.0.1.0/24"
11+
ip_cidr_range = var.subnet_ip_cidr_range
1212
network = google_compute_network.vpc_network.name
1313
private_ip_google_access = true
1414
}

0 commit comments

Comments
 (0)