]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/clamav/recipes/default.rb
Use multipackage installs throughout
[chef.git] / cookbooks / clamav / recipes / default.rb
index ff34b857b728298e7b37c299c95e95f00a982227..93ec86e6903c702e9adbf8619dd71576eadb7836 100644 (file)
 # limitations under the License.
 #
 
-package "clamav-daemon"
-package "clamav-freshclam"
+package %w[
+  clamav-daemon
+  clamav-freshclam
+  clamav-unofficial-sigs
+]
+
+template "/etc/clamav-unofficial-sigs.conf.d/50-chef.conf" do
+  source "clamav-unofficial-sigs.conf.erb"
+  owner "root"
+  group "root"
+  mode 0o644
+end
 
 service "clamav-daemon" do
-  action [ :enable, :start ]
+  action [:enable, :start]
   supports :status => true, :restart => true
 end
 
 service "clamav-freshclam" do
-  action [ :enable, :start ]
+  action [:enable, :start]
   supports :status => true, :restart => true
 end