From f31322ab816b71ae7afc9262b6d428bad5b14094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Thu, 16 Aug 2018 15:59:06 +0200 Subject: [PATCH] Move the firewall rule for ipfs p2p to the right recipe --- site-cookbooks/kosmos-hubot/recipes/default.rb | 5 ----- site-cookbooks/kosmos-ipfs/recipes/default.rb | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/site-cookbooks/kosmos-hubot/recipes/default.rb b/site-cookbooks/kosmos-hubot/recipes/default.rb index 3b2fa45..5560692 100644 --- a/site-cookbooks/kosmos-hubot/recipes/default.rb +++ b/site-cookbooks/kosmos-hubot/recipes/default.rb @@ -14,11 +14,6 @@ unless node.chef_environment == "development" protocol :tcp command :allow end - firewall_rule 'ipfs_swarm_p2p' do - port 4001 - protocol :tcp - command :allow - end end include_recipe "kosmos-nodejs" diff --git a/site-cookbooks/kosmos-ipfs/recipes/default.rb b/site-cookbooks/kosmos-ipfs/recipes/default.rb index b35e959..2cf553d 100644 --- a/site-cookbooks/kosmos-ipfs/recipes/default.rb +++ b/site-cookbooks/kosmos-ipfs/recipes/default.rb @@ -32,3 +32,12 @@ end ipfs_config "API.HTTPHeaders.Access-Control-Allow-Origin" do value ["*"] end + +unless node.chef_environment == "development" + include_recipe 'firewall' + firewall_rule 'ipfs_swarm_p2p' do + port 4001 + protocol :tcp + command :allow + end +end