Skip to content

Commit

Permalink
Merge pull request #49 from redBorder/feature/18893_integrate_firewal…
Browse files Browse the repository at this point in the history
…l_cookbook

Feature/18893 integrate firewall cookbook
  • Loading branch information
ljblancoredborder authored Dec 5, 2024
2 parents 05869b9 + 8713033 commit 59caf92
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
default['redborder']['services']['chef-client'] = true
default['redborder']['services']['chrony'] = true
default['redborder']['services']['redborder-exporter'] = true
default['redborder']['services']['firewall'] = true
default['redborder']['services']['redborder-monitor'] = true
default['redborder']['services']['rsyslog'] = true
default['redborder']['services']['snmp'] = true
Expand All @@ -66,6 +67,7 @@
default['redborder']['systemdservices']['barnyard2'] = ['barnyard2']
default['redborder']['systemdservices']['chef-client'] = ['chef-client']
default['redborder']['systemdservices']['chrony'] = ['chronyd']
default['redborder']['systemdservices']['firewall'] = ['firewalld']
default['redborder']['systemdservices']['redborder-exporter'] = ['rb-exporter']
default['redborder']['systemdservices']['redborder-monitor'] = ['redborder-monitor']
default['redborder']['systemdservices']['rsyslog'] = ['rsyslog']
Expand Down
1 change: 1 addition & 0 deletions resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
depends 'rb-clamav'
depends 'rb-chrony'
depends 'rb-exporter'
depends 'rb-firewall'
8 changes: 8 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
end
end

rb_firewall_config 'Configure Firewall' do
if ips_services['firewall']
action :add
else
action :remove
end
end

node.normal['redborder']['chef_client_interval'] = 300

directory '/etc/snortpcaps' do
Expand Down

0 comments on commit 59caf92

Please sign in to comment.