Add a firewall rule to the kosmos_openresty cookbook

It is part of the run list in production
This commit is contained in:
Greg 2023-07-17 18:05:34 +02:00
parent 4e0bd191c3
commit bf72367cf2
3 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@ development_run_list = %w(
default_run_list = %w(
kosmos_openresty::default
kosmos_openresty::firewall
)
env_run_lists(

View File

@ -6,4 +6,5 @@ description 'Installs/Configures openresty'
version '0.1.0'
chef_version '>= 18.0'
depends 'kosmos-base'
depends 'openresty'

View 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