From 8474cae99c2606c5e6b7793a3171d43d2636c91c Mon Sep 17 00:00:00 2001 From: Darron Froese Date: Tue, 8 Dec 2015 12:44:41 -0700 Subject: [PATCH] Update Firewall recipe with changes needed for the new cookbook. --- recipes/firewall.rb | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/recipes/firewall.rb b/recipes/firewall.rb index 85b2a6f..768bf03 100644 --- a/recipes/firewall.rb +++ b/recipes/firewall.rb @@ -20,34 +20,27 @@ include_recipe 'firewall::default' -package 'ufw' do +firewall 'default' do action :install end -firewall 'ufw' do - action :enable -end - firewall_rule 'ssh' do port 22 - action :allow - notifies :enable, 'firewall[ufw]' + command :allow end firewall_rule 'http' do port 80 - action :allow - notifies :enable, 'firewall[ufw]' + command :allow end firewall_rule 'https' do - port 443 - action :allow - notifies :enable, 'firewall[ufw]' + port 443 + command :allow end firewall_rule 'docker0' do direction :in interface 'docker0' - action :allow + command :allow end