Rename sockethub firewall recipe
Not just used internally anymore.
This commit is contained in:
parent
1586fd536a
commit
b9775a26e4
@ -61,7 +61,7 @@
|
||||
"kosmos-nginx::firewall",
|
||||
"nodejs::npm",
|
||||
"nodejs::install",
|
||||
"sockethub::_firewall"
|
||||
"sockethub::firewall"
|
||||
],
|
||||
"platform": "ubuntu",
|
||||
"platform_version": "20.04",
|
||||
|
@ -1,6 +1,6 @@
|
||||
#
|
||||
# Cookbook Name:: sockethub
|
||||
# Recipe:: _firewall
|
||||
# Recipe:: firewall
|
||||
#
|
||||
|
||||
unless node.chef_environment == "development"
|
||||
@ -12,4 +12,3 @@ unless node.chef_environment == "development"
|
||||
command :allow
|
||||
end
|
||||
end
|
||||
|
||||
|
14
site-cookbooks/sockethub/recipes/firewall.rb
Normal file
14
site-cookbooks/sockethub/recipes/firewall.rb
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Cookbook Name:: sockethub
|
||||
# Recipe:: firewall
|
||||
#
|
||||
|
||||
unless node.chef_environment == "development"
|
||||
include_recipe "kosmos-base::firewall"
|
||||
|
||||
firewall_rule 'sockethub' do
|
||||
port node['sockethub']['external_port'].to_i
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
end
|
@ -3,7 +3,7 @@
|
||||
# Recipe:: proxy
|
||||
#
|
||||
|
||||
include_recipe 'sockethub::_firewall'
|
||||
include_recipe 'sockethub::firewall'
|
||||
include_recipe 'kosmos-nginx'
|
||||
include_recipe "kosmos-base::letsencrypt"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user