Add a recipe that sets up the cluster and enables the firewall
This commit is contained in:
parent
7a8042e356
commit
b36e6a718a
@ -9,3 +9,4 @@ version '0.1.0'
|
|||||||
depends 'ipfs'
|
depends 'ipfs'
|
||||||
depends 'kosmos-base'
|
depends 'kosmos-base'
|
||||||
depends 'kosmos-nginx'
|
depends 'kosmos-nginx'
|
||||||
|
depends 'firewall'
|
||||||
|
19
site-cookbooks/kosmos-ipfs/recipes/cluster.rb
Normal file
19
site-cookbooks/kosmos-ipfs/recipes/cluster.rb
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Cookbook Name:: kosmos-ipfs
|
||||||
|
# Recipe:: cluster
|
||||||
|
#
|
||||||
|
# Copyright 2018, Kosmos
|
||||||
|
#
|
||||||
|
# All rights reserved - Do Not Redistribute
|
||||||
|
#
|
||||||
|
|
||||||
|
include_recipe "ipfs::cluster"
|
||||||
|
|
||||||
|
unless node.chef_environment == "development"
|
||||||
|
include_recipe "firewall"
|
||||||
|
firewall_rule 'ipfs_cluster' do
|
||||||
|
port 9096
|
||||||
|
protocol :tcp
|
||||||
|
command :allow
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user