Recommit for updates in build 18

This commit is contained in:
Jenkins Server
2026-09-14 11:51:17 +02:00
parent 7eb8d13507
commit ca1850223c
2 changed files with 90 additions and 16 deletions

View File

@@ -119,7 +119,25 @@
21
22
23
24</pre>
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
@@ -129,19 +147,37 @@ class clamav_cd::main::service (
) inherits clamav_cd::params {
require clamav_cd::main::files
if $cv_enable_clamd == true {
service { $cv_service:
ensure =&gt; running,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; true,
}
} else {
service { $cv_service:
ensure =&gt; stopped,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; false,
}
}
if $cv_enable_freshclam == true {
service { $cv_freshclam:
ensure =&gt; running,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; true,
}
} else {
service { $cv_freshclam:
ensure =&gt; stopped,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; false,
}
}
}</pre>
</td>
</tr>

View File

@@ -481,6 +481,42 @@ inherited by all classes except defines.
&mdash;
<div class='inline'>
<p>location and name of the alert file</p>
</div>
</li>
<li>
<span class='name'>cv_enable_freshclam</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to enable the freshclam service</p>
</div>
</li>
<li>
<span class='name'>cv_enable_clamd</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to enable the clamd service</p>
</div>
</li>
@@ -496,8 +532,6 @@ inherited by all classes except defines.
<pre class="lines">
37
38
39
40
41
@@ -545,10 +579,13 @@ inherited by all classes except defines.
83
84
85
86</pre>
86
87
88
89</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 37</span>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 39</span>
class clamav_cd::params (
@@ -576,7 +613,8 @@ class clamav_cd::params (
String $cv_cron_user = &#39;root&#39;,
String $cv_scan_dir = &#39;/&#39;,
String $cv_alert_file = &#39;tmp/clamav-alert.txt&#39;,
Boolean $cv_enable_freshclam = true,
Boolean $cv_enable_clamd = true,
) {
# service