diff --git a/manifests/main/files.pp b/manifests/main/files.pp index c69ef9b..0890bba 100644 --- a/manifests/main/files.pp +++ b/manifests/main/files.pp @@ -51,18 +51,18 @@ class confdroid_clamav::main::files ( } # clamd service config file -# file { $cv_clamd_svc : -# ensure => file, -# owner => 'root', -# group => 'root', -# mode => '0600', -# selrange => s0, -# selrole => object_r, -# seltype => etc_t, -# seluser => system_u, -# content => template($cv_clamd_svc_erb), -# notify => Service[$cv_service], -# } + file { $cv_clamd_svc : + ensure => file, + owner => 'root', + group => 'root', + mode => '0600', + selrange => s0, + selrole => object_r, + seltype => etc_t, + seluser => system_u, + content => template($cv_clamd_svc_erb), + notify => Service[$cv_service], + } # shell script for scanning and alerting file { $cv_shell_script : diff --git a/templates/clamd_svc.erb b/templates/clamd_svc.erb index be65353..09c46eb 100644 --- a/templates/clamd_svc.erb +++ b/templates/clamd_svc.erb @@ -14,9 +14,9 @@ ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf ExecReload=/bin/kill -USR2 $MAINPID Restart = on-failure TimeoutStartSec=<%= @cv_timeout_start_sec %> -# MemoryMax=<%= @cv_clamd_max_mem %> -# CPUQuota=<%= @cv_clamd_cpu_quota %> -# Nice=<%= @cv_nice_value %> +MemoryMax=<%= @cv_clamd_max_mem %> +CPUQuota=<%= @cv_clamd_cpu_quota %> +Nice=<%= @cv_nice_value %> [Install] WantedBy = multi-user.target