18 lines
288 B
Ruby
18 lines
288 B
Ruby
#
|
|
# Cookbook Name:: kosmos_redis
|
|
# Recipe:: firewall
|
|
#
|
|
|
|
include_recipe "kosmos-base::firewall"
|
|
|
|
ports = node['redisio']['servers'].map do |server, _|
|
|
server['port']
|
|
end
|
|
|
|
firewall_rule "redis" do
|
|
port ports
|
|
source "10.1.1.0/24" # zerotier
|
|
protocol :tcp
|
|
command :allow
|
|
end
|