Skip to content

Commit

Permalink
Merge pull request #157 from redBorder/feature/add_clamav
Browse files Browse the repository at this point in the history
Add clamav to redborder
  • Loading branch information
jsotofernandez authored Jun 21, 2024
2 parents 376ec0a + c5d590d commit 1d81061
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
default['redborder']['services']['radiusd'] = false
default['redborder']['services']['postfix'] = true
default['redborder']['services']['keepalived'] = false
default['redborder']['services']['clamav'] = true

default['redborder']['systemdservices']['chef-client'] = ['chef-client']
default['redborder']['systemdservices']['chef-server'] = ['opscode-erchef']
Expand Down
1 change: 1 addition & 0 deletions resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@
depends 'rblogstatter'
depends 'rb-arubacentral'
depends 'rb-postfix'
depends 'rb-clamav'
depends 'keepalived'
4 changes: 4 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@
action :add
end

rb_clamav_config 'Configure ClamAV' do
action(manager_services['clamav'] ? :add : :remove)
end

# Determine external
begin
external_services = data_bag_item('rBglobal', 'external_services')
Expand Down

0 comments on commit 1d81061

Please sign in to comment.