19 lines
339 B
Ruby
19 lines
339 B
Ruby
#
|
|
# Cookbook Name:: sockethub
|
|
# Recipe:: _firewall
|
|
#
|
|
# Copyright 2015-2019, Kosmos
|
|
#
|
|
# All rights reserved - Do Not Redistribute
|
|
#
|
|
|
|
unless node.chef_environment == "development"
|
|
include_recipe "firewall"
|
|
firewall_rule 'sockethub' do
|
|
port node['sockethub']['external_port'].to_i
|
|
protocol :tcp
|
|
command :allow
|
|
end
|
|
end
|
|
|