Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module "consul_servers" {
# to contain between 2 - 4 times the working set size.
# - root_volume_disk_type: pd-ssd or local-ssd (for write-heavy workloads, use SSDs for the best write throughput)
# - root_volume_disk_size_gb: Consul's data set is persisted, so this depends on the size of your expected data set
machine_type = "g1-small"
machine_type = var.consul_server_machine_type

root_volume_disk_type = "pd-standard"
root_volume_disk_size_gb = "20"
Expand Down Expand Up @@ -115,7 +115,7 @@ module "consul_clients" {
allowed_inbound_tags_dns = [var.consul_client_cluster_tag_name]
allowed_inbound_cidr_blocks_dns = var.consul_client_allowed_inbound_cidr_blocks_dns

machine_type = "g1-small"
machine_type = var.consul_client_machine_type
root_volume_disk_type = "pd-standard"
root_volume_disk_size_gb = "20"

Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,15 @@ variable "consul_client_allowed_inbound_cidr_blocks_dns" {
type = list(string)
default = []
}

variable "consul_server_machine_type" {
description = "The Google Compute VM type used to launch each node in the Consul Server cluster."
type = string
default = "g1-small"
}

variable "consul_client_machine_type" {
description = "The Google Compute VM type used to launch each node in the Consul Client cluster."
type = string
default = "g1-small"
}