Compare commits
4 Commits
0886eec44c
...
6f3addff5b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f3addff5b | ||
|
|
97de17ae32 | ||
| d0dc4b2fc8 | |||
|
|
5c456b4c30 |
@@ -98,11 +98,6 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
<span class='object_link'><a href="puppet_classes/confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -78,13 +78,6 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::confdroid_clamav::params" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<span class='object_link'><a href="puppet_classes/confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Inherits:</dt>
|
<dt>Inherits:</dt>
|
||||||
<dd><span class='object_link'><a href="confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span></dd>
|
<dd>confdroid_clamav::params</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Inherits:</dt>
|
<dt>Inherits:</dt>
|
||||||
<dd><span class='object_link'><a href="confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span></dd>
|
<dd>confdroid_clamav::params</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Inherits:</dt>
|
<dt>Inherits:</dt>
|
||||||
<dd><span class='object_link'><a href="confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span></dd>
|
<dd>confdroid_clamav::params</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Inherits:</dt>
|
<dt>Inherits:</dt>
|
||||||
<dd><span class='object_link'><a href="confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span></dd>
|
<dd>confdroid_clamav::params</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Inherits:</dt>
|
<dt>Inherits:</dt>
|
||||||
<dd><span class='object_link'><a href="confdroid_clamav_3A_3Aparams.html" title="puppet_classes::confdroid_clamav::params (puppet_class)">confdroid_clamav::params</a></span></dd>
|
<dd>confdroid_clamav::params</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
# @param [String] cv_nice_value nice value for clamd. This is a number between
|
# @param [String] cv_nice_value nice value for clamd. This is a number between
|
||||||
# -20 and 19. The lower the number, the higher the priority. The default is
|
# -20 and 19. The lower the number, the higher the priority. The default is
|
||||||
# 19, which is the lowest priority.
|
# 19, which is the lowest priority.
|
||||||
|
# @param [String] cv_timeout_start_sec timeout for starting the clamd service.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class confdroid_clamav::params (
|
class confdroid_clamav::params (
|
||||||
|
|
||||||
@@ -79,6 +80,7 @@ class confdroid_clamav::params (
|
|||||||
String $cv_clamd_max_mem = '512M',
|
String $cv_clamd_max_mem = '512M',
|
||||||
String $cv_clamd_cpu_quota = '30%',
|
String $cv_clamd_cpu_quota = '30%',
|
||||||
String $cv_nice_value = '19'
|
String $cv_nice_value = '19'
|
||||||
|
String $cv_timeout_start_sec = '420'
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# service
|
# service
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
|
|||||||
# Reload the database
|
# Reload the database
|
||||||
ExecReload=/bin/kill -USR2 $MAINPID
|
ExecReload=/bin/kill -USR2 $MAINPID
|
||||||
Restart = on-failure
|
Restart = on-failure
|
||||||
TimeoutStartSec=420
|
TimeoutStartSec=<%= @cv_timeout_start_sec %>
|
||||||
MemoryLimit=<%= @cv_clamd_max_mem %>
|
MemoryLimit=<%= @cv_clamd_max_mem %>
|
||||||
CPUQuota=<%= @cv_clamd_cpu_quota %>
|
CPUQuota=<%= @cv_clamd_cpu_quota %>
|
||||||
Nice=<%= @cv_nice_value %>
|
Nice=<%= @cv_nice_value %>
|
||||||
|
|||||||
Reference in New Issue
Block a user