Skip to content

Commit

Permalink
Merge pull request #9 from hashicorp/primary-ipm
Browse files Browse the repository at this point in the history
Primaries and IPM
  • Loading branch information
amy-hashi authored Sep 30, 2019
2 parents dce2f9d + e88158f commit 98a084d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion primary.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
resource "aws_instance" "primary" {
count = "${var.primary_count}"
/* The number of primaries must be hard coded to 3 when Internal Production Mode
is selected. Currently, that mode does not support scaling. In other modes, the
cluster can be scaled according the primary_count variable. */
count = "${var.install_type == "ipm" ? 3 : var.primary_count}"
ami = "${var.ami != "" ? var.ami : local.distro_ami}"
instance_type = "${var.primary_instance_type}"

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ variable "installer_url" {

variable "primary_count" {
type = "string"
description = "The number of additional cluster master nodes to run"
description = "The number of primary cluster master nodes to run, should be 3 or 5."
default = 3
}

Expand Down

0 comments on commit 98a084d

Please sign in to comment.