From: Tom Hughes Date: Tue, 27 Sep 2022 21:40:41 +0000 (+0100) Subject: Add clamav to the Debian-exim group on mail servers X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c705096d270e4845a0d361a2cf1ff5fe461810f7 Add clamav to the Debian-exim group on mail servers --- diff --git a/cookbooks/clamav/attributes/default.rb b/cookbooks/clamav/attributes/default.rb new file mode 100644 index 000000000..141f3664e --- /dev/null +++ b/cookbooks/clamav/attributes/default.rb @@ -0,0 +1 @@ +default[:accounts][:groups][:"Debian-exim"][:members] = [:clamav] diff --git a/cookbooks/clamav/metadata.rb b/cookbooks/clamav/metadata.rb index 32a05964e..8ef95c906 100644 --- a/cookbooks/clamav/metadata.rb +++ b/cookbooks/clamav/metadata.rb @@ -6,3 +6,4 @@ description "Installs and configures clamav" version "1.0.0" supports "ubuntu" +depends "accounts" diff --git a/cookbooks/clamav/recipes/default.rb b/cookbooks/clamav/recipes/default.rb index f6dd24a5c..938b2f5ab 100644 --- a/cookbooks/clamav/recipes/default.rb +++ b/cookbooks/clamav/recipes/default.rb @@ -17,6 +17,8 @@ # limitations under the License. # +include_recipe "accounts" + package %w[ clamav-daemon clamav-freshclam