add 8301 consul port to open by default

This commit is contained in:
Jakub Sokołowski 2018-08-02 11:20:15 -04:00
parent ef9173094f
commit 9571bd8b5e
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 8 additions and 4 deletions

View File

@ -3,9 +3,10 @@ locals {
stage = "${terraform.workspace}"
tokens = "${split(".", local.stage)}"
dc = "${var.provider}-${var.zone}"
/* always add SSH, Tinc, and Netdata to allowed ports */
/* always add SSH, Tinc, Netdata, and Consul to allowed ports */
open_ports = [
"22/22", "655/655", "8000/8000", "${var.open_ports}",
"22/22", "655/655", "8000/8000", "8301/8301",
"${var.open_ports}",
]
}
/* RESOURCES ------------------------------------*/

View File

@ -2,8 +2,11 @@
locals {
stage = "${terraform.workspace}"
dc = "${var.provider}-${var.zone}"
/* always add SSH, Tinc, and Netdata to allowed ports */
open_ports = ["22", "655", "8000", "${var.open_ports}"]
/* always add SSH, Tinc, Netdata, and Consul to allowed ports */
open_ports = [
"22", "655", "8000", "8301",
"${var.open_ports}"
]
}
/* RESOURCES ------------------------------------*/