Commit 8f9df085 authored by Mikhail Vasilenko's avatar Mikhail Vasilenko

add rules for MongoDB cluster ports

parent 02db299b
......@@ -6,7 +6,7 @@
variable "auto_ingress_rules" {
description = "List of ingress rules to add automatically"
type = "list"
default = ["mongodb-tcp"]
default = ["mongodb-27017-tcp", "mongodb-27018-tcp", "mongodb-27019-tcp"]
}
variable "auto_ingress_with_self" {
......
......@@ -68,7 +68,9 @@ variable "rules" {
memcached-tcp = [11211, 11211, "tcp", "Memcached"]
# 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-tcp = [3306, 3306, "tcp", "MySQL/Aurora"]
......@@ -258,7 +260,7 @@ variable "auto_groups" {
}
mongodb = {
ingress_rules = ["mongodb-tcp"]
ingress_rules = ["mongodb-27017-tcp", "mongodb-27018-tcp", "mongodb-27019-tcp"]
ingress_with_self = ["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