Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Update Firewall recipe with changes needed for the new cookbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
darron committed Dec 8, 2015
1 parent 281f819 commit 8474cae
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions recipes/firewall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8474cae

Please sign in to comment.