Commit 62cd2fe6 authored by Anton Babenko's avatar Anton Babenko Committed by GitHub

Merge pull request #104 from mvasilenko/add-mongodb-cluster-rules

add rules for MongoDB cluster ports
parents 02db299b 8f9df085
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
variable "auto_ingress_rules" { variable "auto_ingress_rules" {
description = "List of ingress rules to add automatically" description = "List of ingress rules to add automatically"
type = "list" type = "list"
default = ["mongodb-tcp"] default = ["mongodb-27017-tcp", "mongodb-27018-tcp", "mongodb-27019-tcp"]
} }
variable "auto_ingress_with_self" { variable "auto_ingress_with_self" {
......
...@@ -68,7 +68,9 @@ variable "rules" { ...@@ -68,7 +68,9 @@ variable "rules" {
memcached-tcp = [11211, 11211, "tcp", "Memcached"] memcached-tcp = [11211, 11211, "tcp", "Memcached"]
# MongoDB # MongoDB
mongodb-tcp = [27017, 27017, "tcp", "MongoDB"] mongodb-27017-tcp = [27017, 27017, "tcp", "MongoDB"]
mongodb-27018-tcp = [27018, 27018, "tcp", "MongoDB shard"]
mongodb-27019-tcp = [27019, 27019, "tcp", "MongoDB config server"]
# MySQL # MySQL
mysql-tcp = [3306, 3306, "tcp", "MySQL/Aurora"] mysql-tcp = [3306, 3306, "tcp", "MySQL/Aurora"]
...@@ -258,7 +260,7 @@ variable "auto_groups" { ...@@ -258,7 +260,7 @@ variable "auto_groups" {
} }
mongodb = { mongodb = {
ingress_rules = ["mongodb-tcp"] ingress_rules = ["mongodb-27017-tcp", "mongodb-27018-tcp", "mongodb-27019-tcp"]
ingress_with_self = ["all-all"] ingress_with_self = ["all-all"]
egress_rules = ["all-all"] egress_rules = ["all-all"]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment