Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/18893 integreate firewall cookbook #51

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
default['redborder']['services']['redborder-exporter'] = true
default['redborder']['services']['clamav'] = true
default['redborder']['services']['chrony'] = true
default['redborder']['services']['firewall'] = true

default['redborder']['systemdservices']['chef-client'] = ['chef-client']
default['redborder']['systemdservices']['kafka'] = ['kafka']
Expand All @@ -77,3 +78,4 @@
default['redborder']['systemdservices']['k2http'] = ['k2http']
default['redborder']['systemdservices']['redborder-exporter'] = ['rb-exporter']
default['redborder']['systemdservices']['chrony'] = ['chronyd']
default['redborder']['systemdservices']['firewall'] = ['firewalld']
1 change: 1 addition & 0 deletions resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
depends 'rbcgroup'
depends 'rb-clamav'
depends 'rb-chrony'
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 @@ -26,6 +26,14 @@
end
end

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

zookeeper_config 'Configure Zookeeper' do
port node['zookeeper']['port']
memory node['redborder']['memory_services']['zookeeper']['memory']
Expand Down
Loading