Skip to content

Commit

Permalink
Add a rule for consul CLI RPC (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbowes authored and antonbabenko committed Oct 17, 2018
1 parent 8bf1919 commit fbb1f13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/consul/auto_values.tf
Expand Up @@ -6,7 +6,7 @@
variable "auto_ingress_rules" {
description = "List of ingress rules to add automatically"
type = "list"
default = ["consul-tcp", "consul-webui-tcp", "consul-dns-tcp", "consul-dns-udp", "consul-serf-lan-tcp", "consul-serf-lan-udp", "consul-serf-wan-tcp", "consul-serf-wan-udp"]
default = ["consul-tcp", "consul-cli-rpc-tcp", "consul-webui-tcp", "consul-dns-tcp", "consul-dns-udp", "consul-serf-lan-tcp", "consul-serf-lan-udp", "consul-serf-wan-tcp", "consul-serf-wan-udp"]
}

variable "auto_ingress_with_self" {
Expand Down
3 changes: 2 additions & 1 deletion rules.tf
Expand Up @@ -20,6 +20,7 @@ variable "rules" {

# Consul
consul-tcp = [8300, 8300, "tcp", "Consul server"]
consul-cli-rpc-tcp = [8400, 8400, "tcp", "Consul CLI RPC"]
consul-webui-tcp = [8500, 8500, "tcp", "Consul web UI"]
consul-dns-tcp = [8600, 8600, "tcp", "Consul DNS"]
consul-dns-udp = [8600, 8600, "udp", "Consul DNS"]
Expand Down Expand Up @@ -175,7 +176,7 @@ variable "auto_groups" {
}

consul = {
ingress_rules = ["consul-tcp", "consul-webui-tcp", "consul-dns-tcp", "consul-dns-udp", "consul-serf-lan-tcp", "consul-serf-lan-udp", "consul-serf-wan-tcp", "consul-serf-wan-udp"]
ingress_rules = ["consul-tcp", "consul-cli-rpc-tcp", "consul-webui-tcp", "consul-dns-tcp", "consul-dns-udp", "consul-serf-lan-tcp", "consul-serf-lan-udp", "consul-serf-wan-tcp", "consul-serf-wan-udp"]
ingress_with_self = ["all-all"]
egress_rules = ["all-all"]
}
Expand Down

0 comments on commit fbb1f13

Please sign in to comment.