terraform/gcp: Allow to change extra disk types (#8524)

This commit is contained in:
Mathieu Parent
2022-02-15 09:22:02 +01:00
committed by GitHub
parent 1ebe456f2d
commit 31d4a38f09
5 changed files with 29 additions and 5 deletions

View File

@@ -181,7 +181,7 @@ resource "google_compute_disk" "master" {
}
name = "${var.prefix}-${each.key}"
type = "pd-ssd"
type = var.master_additional_disk_type
zone = each.value.machine.zone
size = each.value.disk_size
@@ -271,7 +271,7 @@ resource "google_compute_disk" "worker" {
}
name = "${var.prefix}-${each.key}"
type = "pd-ssd"
type = var.worker_additional_disk_type
zone = each.value.machine.zone
size = each.value.disk_size

View File

@@ -31,6 +31,10 @@ variable "master_preemptible" {
type = bool
}
variable "master_additional_disk_type" {
type = string
}
variable "worker_sa_email" {
type = string
}
@@ -43,6 +47,10 @@ variable "worker_preemptible" {
type = bool
}
variable "worker_additional_disk_type" {
type = string
}
variable "ssh_pub_key" {}
variable "ssh_whitelist" {