mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-21 16:51:33 +02:00
Rename worker pool modules' count variable to worker_count
* This change affects users who use worker pools on AWS, GCP, or Azure with a Container Linux derivative * Rename worker pool modules' `count` variable to `worker_count`, because `count` will be a reserved variable name in Terraform v0.12
This commit is contained in:
@ -32,7 +32,7 @@ variable "backend_address_pool_id" {
|
||||
|
||||
# instances
|
||||
|
||||
variable "count" {
|
||||
variable "worker_count" {
|
||||
type = "string"
|
||||
default = "1"
|
||||
description = "Number of instances"
|
||||
|
@ -15,7 +15,7 @@ resource "azurerm_virtual_machine_scale_set" "workers" {
|
||||
sku {
|
||||
name = "${var.vm_type}"
|
||||
tier = "standard"
|
||||
capacity = "${var.count}"
|
||||
capacity = "${var.worker_count}"
|
||||
}
|
||||
|
||||
# boot
|
||||
@ -87,9 +87,9 @@ resource "azurerm_monitor_autoscale_setting" "workers" {
|
||||
name = "default"
|
||||
|
||||
capacity {
|
||||
minimum = "${var.count}"
|
||||
default = "${var.count}"
|
||||
maximum = "${var.count}"
|
||||
minimum = "${var.worker_count}"
|
||||
default = "${var.worker_count}"
|
||||
maximum = "${var.worker_count}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user