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 all commits
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 @@ -40,6 +40,7 @@
default['redborder']['services'] = {}
default['redborder']['services']['chef-client'] = true
default['redborder']['services']['chrony'] = true
default['redborder']['services']['firewall'] = true
default['redborder']['services']['f2k'] = true
default['redborder']['services']['k2http'] = true
default['redborder']['services']['kafka'] = true
Expand All @@ -58,6 +59,7 @@

default['redborder']['systemdservices']['chef-client'] = ['chef-client']
default['redborder']['systemdservices']['chrony'] = ['chronyd']
default['redborder']['systemdservices']['firewall'] = ['firewalld']
default['redborder']['systemdservices']['f2k'] = ['f2k']
default['redborder']['systemdservices']['k2http'] = ['k2http']
default['redborder']['systemdservices']['kafka'] = ['kafka']
Expand Down
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