Add a firewall rule to the kosmos_openresty cookbook
It is part of the run list in production
This commit is contained in:
@@ -6,4 +6,5 @@ description 'Installs/Configures openresty'
|
||||
version '0.1.0'
|
||||
chef_version '>= 18.0'
|
||||
|
||||
depends 'kosmos-base'
|
||||
depends 'openresty'
|
||||
|
||||
11
site-cookbooks/kosmos_openresty/recipes/firewall.rb
Normal file
11
site-cookbooks/kosmos_openresty/recipes/firewall.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Cookbook Name:: kosmos_openresty
|
||||
# Recipe:: firewall
|
||||
|
||||
include_recipe "kosmos-base::firewall"
|
||||
|
||||
firewall_rule "http/https" do
|
||||
port [80, 443]
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
Reference in New Issue
Block a user