terraform: allow for multiple instance groups (#1471)

This commit is contained in:
3u13r 2023-03-21 22:56:03 +01:00 committed by GitHub
parent 7a0cbe39f4
commit cf9970c051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 58 deletions

View file

@ -56,7 +56,7 @@ resource "google_compute_instance_template" "template" {
subnetwork = var.subnetwork
alias_ip_range {
ip_cidr_range = "/24"
subnetwork_range_name = var.name
subnetwork_range_name = var.alias_ip_range_name
}
}

View file

@ -79,3 +79,8 @@ variable "debug" {
default = false
description = "Enable debug mode. This will enable serial port access on the instances."
}
variable "alias_ip_range_name" {
type = string
description = "Name of the alias IP range to use."
}