From ebd3f118e86ce519501a96c3376ede5de84bf69f Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Mon, 9 Nov 2026 12:36:29 +0100 Subject: [PATCH] add function to remove clamav altogether --- manifests/main/install.pp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/manifests/main/install.pp b/manifests/main/install.pp index c897277..3f33c71 100644 --- a/manifests/main/install.pp +++ b/manifests/main/install.pp @@ -9,7 +9,14 @@ class confdroid_clamav::main::install ( ) inherits confdroid_clamav::params { require confdroid_resources::main::epel - package { $cv_reqpackages: - ensure => $cv_pkg_ensure, + if $cv_enable_clamd == true { + package { 'clamd': + ensure => $cv_pkg_ensure, + } + } + else { + package { 'clamd': + ensure => 'absent', + } } }