Merge branch 'jenkins-build-14' into 'master'

Auto-merge for build 14

See merge request puppet/clamav_cd!11
This commit is contained in:
Jenkins
2025-06-08 13:36:28 +00:00
2 changed files with 25 additions and 1 deletions

View File

@@ -113,7 +113,15 @@ clamav_cd.
15 15
16 16
17 17
18</pre> 18
19
20
21
22
23
24
25
26</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 7</span> <pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 7</span>
@@ -129,6 +137,14 @@ class clamav_cd::main::config (
unless =&gt; &#39;/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet &quot;on&quot;&#39;, unless =&gt; &#39;/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet &quot;on&quot;&#39;,
path =&gt; [&#39;/usr/sbin&#39;, &#39;/bin&#39;], path =&gt; [&#39;/usr/sbin&#39;, &#39;/bin&#39;],
} }
# create a cron job to run a daily scan
cron { &#39;clamscan&#39;:
command =&gt; &#39;/bin/clamscan -r / &gt;&gt; /var/log/clamav/daily-scan.log&#39;,
user =&gt; &#39;root&#39;,
hour =&gt; 2,
minute =&gt; 0,
}
}</pre> }</pre>
</td> </td>
</tr> </tr>

View File

@@ -15,4 +15,12 @@ class clamav_cd::main::config (
unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"', unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"',
path => ['/usr/sbin', '/bin'], path => ['/usr/sbin', '/bin'],
} }
# create a cron job to run a daily scan
cron { 'clamscan':
command => '/bin/clamscan -r / >> /var/log/clamav/daily-scan.log',
user => 'root',
hour => 2,
minute => 0,
}
} }