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

Auto-merge for build 4

See merge request puppet/clamav_cd!1
This commit is contained in:
Jenkins
2025-06-08 10:30:18 +00:00
21 changed files with 1414 additions and 102 deletions

View File

@@ -1,6 +1,7 @@
{ {
"cSpell.words": [ "cSpell.words": [
"clamd", "clamd",
"epel",
"freshclam", "freshclam",
"logclean", "logclean",
"logfacility", "logfacility",

9
Jenkinsfile vendored
View File

@@ -69,7 +69,7 @@ pipeline {
withCredentials([string(credentialsId: 'sonar-token', variable: 'SONAR_TOKEN')]) { withCredentials([string(credentialsId: 'sonar-token', variable: 'SONAR_TOKEN')]) {
sh ''' sh '''
/opt/sonar-scanner/bin/sonar-scanner \ /opt/sonar-scanner/bin/sonar-scanner \
-Dsonar.projectKey=cd_clamav \ -Dsonar.projectKey=clamav_cd \
-Dsonar.sources=. \ -Dsonar.sources=. \
-Dsonar.host.url=https://sonarqube.confdroid.com \ -Dsonar.host.url=https://sonarqube.confdroid.com \
-Dsonar.token=$SONAR_TOKEN -Dsonar.token=$SONAR_TOKEN
@@ -91,7 +91,12 @@ pipeline {
git config user.name "Jenkins Server" git config user.name "Jenkins Server"
git config user.email jenkins@confdroid.com git config user.email jenkins@confdroid.com
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit" git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
git push origin HEAD:master git push -o merge_request.create \
-o merge_request.target=master \
-o merge_request.title="Auto-merge for build $BUILD_NUMBER" \
-o merge_request.description="Automated changes from Jenkins build $BUILD_NUMBER" \
-o merge_request.merge_when_pipeline_succeeds=true \
origin jenkins-build-$BUILD_NUMBER
''' '''
} }
} }

View File

@@ -1,6 +1,6 @@
# Readme # Readme
[![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_clamav)](https://jenkins.confdroid.com/job/cd_clamav/)| [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=clamav_cd)](https://jenkins.confdroid.com/job/clamav_cd/)|
[[_TOC_]] [[_TOC_]]
@@ -8,7 +8,7 @@
`Clamav` is a powerful antivirus scanner with several components. `Clamav` is a powerful antivirus scanner with several components.
`cd_clamav` is a puppet module to manage clamav installations and configurations. `clamav_cd` is a puppet module to manage clamav installations and configurations.
## WARNING ## WARNING
@@ -28,13 +28,13 @@ via site.pp or nodes.pp
```bash ```bash
node 'example.example.net' { node 'example.example.net' {
include cd_clamav include clamav_cd
} }
``` ```
* through Foreman: * through Foreman:
In order to apply parameters through Foreman, **__cd_clamav::params__** must be added to the host or host group in question. In order to apply parameters through Foreman, **__clamav_cd::params__** must be added to the host or host group in question.
See [more details about class deployment on Confdroid.com](https://confdroid.com/2017/05/deploying-our-puppet-modules/). See [more details about class deployment on Confdroid.com](https://confdroid.com/2017/05/deploying-our-puppet-modules/).
@@ -48,20 +48,16 @@ All files and directories are configured with correct selinux context. If selinu
## Support ## Support
* OS: CentOS 7 * OS: Rocky 9
* Puppet 5 * Puppet 6-8
## Tests ## Tests
* Puppet Lint * Puppet Lint
* excluded tests: * excluded tests:
* `--no-class_inherits_from_params_class-check`:relevant only to non-supported outdated puppet versions * `--no-class_inherits_from_params_class-check`:relevant only to non-supported outdated puppet versions
* `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
* `--no-80chars-check`: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault `params.pp`.
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
* Puppet Parser * Puppet Parser
* ERB Template Parser * ERB Template Parser
* Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)
* Sonar Quality Gate * Sonar Quality Gate
## Contact Us ## Contact Us

View File

@@ -69,37 +69,37 @@
<ul> <ul>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav.html" title="puppet_classes::cd_clamav (puppet_class)">cd_clamav</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd.html" title="puppet_classes::clamav_cd (puppet_class)">clamav_cd</a></span>
</li> </li>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_clamav::main::config (puppet_class)">cd_clamav::main::config</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::clamav_cd::main::config (puppet_class)">clamav_cd::main::config</a></span>
</li> </li>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_clamav::main::dirs (puppet_class)">cd_clamav::main::dirs</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::clamav_cd::main::dirs (puppet_class)">clamav_cd::main::dirs</a></span>
</li> </li>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Afiles.html" title="puppet_classes::cd_clamav::main::files (puppet_class)">cd_clamav::main::files</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::clamav_cd::main::files (puppet_class)">clamav_cd::main::files</a></span>
</li> </li>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_clamav::main::install (puppet_class)">cd_clamav::main::install</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::clamav_cd::main::install (puppet_class)">clamav_cd::main::install</a></span>
</li> </li>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Aservice.html" title="puppet_classes::cd_clamav::main::service (puppet_class)">cd_clamav::main::service</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::clamav_cd::main::service (puppet_class)">clamav_cd::main::service</a></span>
</li> </li>
<li> <li>
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Aparams.html" title="puppet_classes::cd_clamav::params (puppet_class)">cd_clamav::params</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span>
</li> </li>

View File

@@ -60,7 +60,7 @@
<div id="content"><div id='filecontents'> <div id="content"><div id='filecontents'>
<h1 id="label-Readme">Readme</h1> <h1 id="label-Readme">Readme</h1>
<p><a href="https://jenkins.confdroid.com/job/cd_clamav/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=cd_clamav"></a>|</p> <p><a href="https://jenkins.confdroid.com/job/clamav_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=clamav_cd"></a>|</p>
<p>[[<em>TOC</em>]]</p> <p>[[<em>TOC</em>]]</p>
@@ -68,7 +68,7 @@
<p><code>Clamav</code> is a powerful antivirus scanner with several components.</p> <p><code>Clamav</code> is a powerful antivirus scanner with several components.</p>
<p><code>cd_clamav</code> is a puppet module to manage clamav installations and configurations.</p> <p><code>clamav_cd</code> is a puppet module to manage clamav installations and configurations.</p>
<h2 id="label-WARNING">WARNING</h2> <h2 id="label-WARNING">WARNING</h2>
@@ -89,14 +89,14 @@
<p>via site.pp or nodes.pp</p> <p>via site.pp or nodes.pp</p>
<pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; { <pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; {
include cd_clamav include clamav_cd
} }
</code></pre> </code></pre>
<ul><li> <ul><li>
<p>through Foreman:</p> <p>through Foreman:</p>
</li></ul> </li></ul>
<p>In order to apply parameters through Foreman, <strong>cd_clamav::params</strong> must be added to the host or host group in question.</p> <p>In order to apply parameters through Foreman, <strong>clamav_cd::params</strong> must be added to the host or host group in question.</p>
<p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p> <p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p>
@@ -110,9 +110,9 @@
<h2 id="label-Support">Support</h2> <h2 id="label-Support">Support</h2>
<ul><li> <ul><li>
<p>OS: CentOS 7</p> <p>OS: Rocky 9</p>
</li><li> </li><li>
<p>Puppet 5</p> <p>Puppet 6-8</p>
</li></ul> </li></ul>
<h2 id="label-Tests">Tests</h2> <h2 id="label-Tests">Tests</h2>
@@ -122,20 +122,12 @@
<p>excluded tests:</p> <p>excluded tests:</p>
<ul><li> <ul><li>
<p><code>--no-class_inherits_from_params_class-check</code>:relevant only to non-supported outdated puppet versions</p> <p><code>--no-class_inherits_from_params_class-check</code>:relevant only to non-supported outdated puppet versions</p>
</li><li>
<p><code>--no-variable_scope-check</code>: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.</p>
</li><li>
<p><code>--no-80chars-check</code>: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault <code>params.pp</code>.</p>
</li><li>
<p><code>--no-arrow_alignment-check</code>: this check leads to actually not having am easily readable arrow alignment, as this checks <code>per block</code>, not per class.</p>
</li></ul> </li></ul>
</li><li> </li><li>
<p>Puppet Parser</p> <p>Puppet Parser</p>
</li><li> </li><li>
<p>ERB Template Parser</p> <p>ERB Template Parser</p>
</li><li> </li><li>
<p>Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)</p>
</li><li>
<p>Sonar Quality Gate</p> <p>Sonar Quality Gate</p>
</li></ul> </li></ul>

View File

@@ -60,7 +60,7 @@
<div id="content"><div id='filecontents'> <div id="content"><div id='filecontents'>
<h1 id="label-Readme">Readme</h1> <h1 id="label-Readme">Readme</h1>
<p><a href="https://jenkins.confdroid.com/job/cd_clamav/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=cd_clamav"></a>|</p> <p><a href="https://jenkins.confdroid.com/job/clamav_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=clamav_cd"></a>|</p>
<p>[[<em>TOC</em>]]</p> <p>[[<em>TOC</em>]]</p>
@@ -68,7 +68,7 @@
<p><code>Clamav</code> is a powerful antivirus scanner with several components.</p> <p><code>Clamav</code> is a powerful antivirus scanner with several components.</p>
<p><code>cd_clamav</code> is a puppet module to manage clamav installations and configurations.</p> <p><code>clamav_cd</code> is a puppet module to manage clamav installations and configurations.</p>
<h2 id="label-WARNING">WARNING</h2> <h2 id="label-WARNING">WARNING</h2>
@@ -89,14 +89,14 @@
<p>via site.pp or nodes.pp</p> <p>via site.pp or nodes.pp</p>
<pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; { <pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; {
include cd_clamav include clamav_cd
} }
</code></pre> </code></pre>
<ul><li> <ul><li>
<p>through Foreman:</p> <p>through Foreman:</p>
</li></ul> </li></ul>
<p>In order to apply parameters through Foreman, <strong>cd_clamav::params</strong> must be added to the host or host group in question.</p> <p>In order to apply parameters through Foreman, <strong>clamav_cd::params</strong> must be added to the host or host group in question.</p>
<p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p> <p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p>
@@ -110,9 +110,9 @@
<h2 id="label-Support">Support</h2> <h2 id="label-Support">Support</h2>
<ul><li> <ul><li>
<p>OS: CentOS 7</p> <p>OS: Rocky 9</p>
</li><li> </li><li>
<p>Puppet 5</p> <p>Puppet 6-8</p>
</li></ul> </li></ul>
<h2 id="label-Tests">Tests</h2> <h2 id="label-Tests">Tests</h2>
@@ -122,20 +122,12 @@
<p>excluded tests:</p> <p>excluded tests:</p>
<ul><li> <ul><li>
<p><code>--no-class_inherits_from_params_class-check</code>:relevant only to non-supported outdated puppet versions</p> <p><code>--no-class_inherits_from_params_class-check</code>:relevant only to non-supported outdated puppet versions</p>
</li><li>
<p><code>--no-variable_scope-check</code>: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.</p>
</li><li>
<p><code>--no-80chars-check</code>: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault <code>params.pp</code>.</p>
</li><li>
<p><code>--no-arrow_alignment-check</code>: this check leads to actually not having am easily readable arrow alignment, as this checks <code>per block</code>, not per class.</p>
</li></ul> </li></ul>
</li><li> </li><li>
<p>Puppet Parser</p> <p>Puppet Parser</p>
</li><li> </li><li>
<p>ERB Template Parser</p> <p>ERB Template Parser</p>
</li><li> </li><li>
<p>Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)</p>
</li><li>
<p>Sonar Quality Gate</p> <p>Sonar Quality Gate</p>
</li></ul> </li></ul>

View File

@@ -36,51 +36,51 @@
<ul id="full_list" class="puppet_class"> <ul id="full_list" class="puppet_class">
<li id="object_puppet_classes::cd_clamav" class="odd"> <li id="object_puppet_classes::clamav_cd" class="odd">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav.html" title="puppet_classes::cd_clamav (puppet_class)">cd_clamav</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd.html" title="puppet_classes::clamav_cd (puppet_class)">clamav_cd</a></span>
</div> </div>
</li> </li>
<li id="object_puppet_classes::cd_clamav::main::config" class="even"> <li id="object_puppet_classes::clamav_cd::main::config" class="even">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_clamav::main::config (puppet_class)">cd_clamav::main::config</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::clamav_cd::main::config (puppet_class)">clamav_cd::main::config</a></span>
</div> </div>
</li> </li>
<li id="object_puppet_classes::cd_clamav::main::dirs" class="odd"> <li id="object_puppet_classes::clamav_cd::main::dirs" class="odd">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_clamav::main::dirs (puppet_class)">cd_clamav::main::dirs</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::clamav_cd::main::dirs (puppet_class)">clamav_cd::main::dirs</a></span>
</div> </div>
</li> </li>
<li id="object_puppet_classes::cd_clamav::main::files" class="even"> <li id="object_puppet_classes::clamav_cd::main::files" class="even">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Afiles.html" title="puppet_classes::cd_clamav::main::files (puppet_class)">cd_clamav::main::files</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::clamav_cd::main::files (puppet_class)">clamav_cd::main::files</a></span>
</div> </div>
</li> </li>
<li id="object_puppet_classes::cd_clamav::main::install" class="odd"> <li id="object_puppet_classes::clamav_cd::main::install" class="odd">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_clamav::main::install (puppet_class)">cd_clamav::main::install</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::clamav_cd::main::install (puppet_class)">clamav_cd::main::install</a></span>
</div> </div>
</li> </li>
<li id="object_puppet_classes::cd_clamav::main::service" class="even"> <li id="object_puppet_classes::clamav_cd::main::service" class="even">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Amain_3A_3Aservice.html" title="puppet_classes::cd_clamav::main::service (puppet_class)">cd_clamav::main::service</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::clamav_cd::main::service (puppet_class)">clamav_cd::main::service</a></span>
</div> </div>
</li> </li>
<li id="object_puppet_classes::cd_clamav::params" class="odd"> <li id="object_puppet_classes::clamav_cd::params" class="odd">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/cd_clamav_3A_3Aparams.html" title="puppet_classes::cd_clamav::params (puppet_class)">cd_clamav::params</a></span> <span class='object_link'><a href="puppet_classes/clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span>
</div> </div>
</li> </li>

View File

@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd</h1>
<div class="box_info">
<dl>
<dt>Defined in:</dt>
<dd>
manifests/init.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class initializes the clamav_cd Module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd::init.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 6</span>
class clamav_cd {
include clamav_cd::params
resources { &#39;firewall&#39;:
purge =&gt; true,
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,131 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd::main::config
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd::main::config";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd::main::config</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd::main::config</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/config.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages all aspects of configuring the module logic for
clamav_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd::main::config.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
7
8
9
10
11</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 7</span>
class clamav_cd::main::config (
) inherits clamav_cd::params {
include clamav_cd::main::service
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,154 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd::main::dirs
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd::main::dirs";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd::main::dirs</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd::main::dirs</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/dirs.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages all directories required for clamav_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd::main::dirs.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
class clamav_cd::main::dirs (
) inherits clamav_cd::params {
require clamav_cd::main::install
# config.d dir
file { $cv_config_d_dir:
ensure =&gt; directory,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0755&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,184 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd::main::files
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd::main::files";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd::main::files</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd::main::files</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/files.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages all configuration files required for clamav_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd::main::files.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
class clamav_cd::main::files (
) inherits clamav_cd::params {
require clamav_cd::main::dirs
# clamd config file
file { $cv_clamd_config_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($cv_clamd_config_erb),
# notify =&gt; Service[$cv_service],
}
# freshclam config file
file { $cv_freshclam_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0600&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($cv_freshclam_erb),
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd::main::install
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd::main::install";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd::main::install</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd::main::install</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/install.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manage all aspects of installing binaries required for
clamav_cd
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd ::main::install.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
7
8
9
10
11
12
13
14
15</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 7</span>
class clamav_cd::main::install (
) inherits clamav_cd::params {
require resources_cd::main::epel
package { $reqpackages:
ensure =&gt; $pkg_ensure,
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,144 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd::main::service
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd::main::service";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd::main::service</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd::main::service</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="clamav_cd_3A_3Aparams.html" title="puppet_classes::clamav_cd::params (puppet_class)">clamav_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/service.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages the service(s) for clamav_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd::main::service.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
class clamav_cd::main::service (
) inherits clamav_cd::params {
require clamav_cd::main::files
# service { $cv_service:
# ensure =&gt; running,
# hasstatus =&gt; true,
# hasrestart =&gt; true,
# enable =&gt; true,
# }
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,443 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: clamav_cd::params
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::clamav_cd::params";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">clamav_cd::params</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: clamav_cd::params</h1>
<div class="box_info">
<dl>
<dt>Inherited by:</dt>
<dd>
<span class='object_link'><a href="clamav_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::clamav_cd::main::dirs (puppet_class)">clamav_cd::main::dirs</a></span><br/>
<span class='object_link'><a href="clamav_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::clamav_cd::main::files (puppet_class)">clamav_cd::main::files</a></span><br/>
<span class='object_link'><a href="clamav_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::clamav_cd::main::config (puppet_class)">clamav_cd::main::config</a></span><br/>
<span class='object_link'><a href="clamav_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::clamav_cd::main::install (puppet_class)">clamav_cd::main::install</a></span><br/>
<span class='object_link'><a href="clamav_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::clamav_cd::main::service (puppet_class)">clamav_cd::main::service</a></span><br/>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/params.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class holds all parameters for the clamav_cd module and is
inherited by all classes except defines.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>clamav_cd::params.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>reqpackages</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>[&#39;clamav&#39;,&#39;clamav-update&#39;,&#39;clamd&#39;]</tt>)</em>
&mdash;
<div class='inline'>
<p>List of packages to install.</p>
</div>
</li>
<li>
<span class='name'>pkg_ensure</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>which <a href="https://confdroid.com/2017/05/puppet-type-package/">package type</a> to choose, i.e. <code>latest</code> or <code>present</code>.</p>
</div>
</li>
<li>
<span class='name'>cv_logfile</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;/var/log/clamd.scan&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>where to log messages for the clamd service.</p>
</div>
</li>
<li>
<span class='name'>cv_logfileunlock</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;no&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether log file should be locked for writing -the lock protects against running clamd multiple times</p>
</div>
</li>
<li>
<span class='name'>cv_logfilemaxsize</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;2M&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the max size for the logfile. This also enables logrotation.</p>
</div>
</li>
<li>
<span class='name'>cv_logtime</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;yes&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to log the time with each message.</p>
</div>
</li>
<li>
<span class='name'>cv_logclean</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;no&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to log clean files. Useful in debugging but drastically increases the log size.</p>
</div>
</li>
<li>
<span class='name'>cv_logsyslog</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;yes&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Use system logger (can work together with LogFile).</p>
</div>
</li>
<li>
<span class='name'>cv_logfacility</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;LOG_MAIL&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>type of syslog messages - please refer to man syslogfor facility names</p>
</div>
</li>
<li>
<span class='name'>cv_logverbose</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;no&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to log verbose.</p>
</div>
</li>
<li>
<span class='name'>cv_logrotate</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;yes&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to enable log rotation. Always enabled when LogFileMaxSize is enabled.</p>
</div>
</li>
<li>
<span class='name'>cv_preludeenable</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;no&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to enable prelude output.</p>
</div>
</li>
<li>
<span class='name'>cv_preludeanalyzername</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;ClamAV&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>name of the analyzer used by prelude-admin.</p>
</div>
</li>
</ul>
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 29</span>
class clamav_cd::params (
# installation
String $reqpackages = [&#39;clamav&#39;,&#39;clamav-update&#39;,&#39;clamd&#39;],
String $pkg_ensure = &#39;present&#39;,
# clamd
String $cv_logfile = &#39;/var/log/clamd.scan&#39;,
String $cv_logfileunlock = &#39;no&#39;,
String $cv_logfilemaxsize = &#39;2M&#39;,
String $cv_logtime = &#39;yes&#39;,
String $cv_logclean = &#39;no&#39;,
String $cv_logsyslog = &#39;yes&#39;,
String $cv_logfacility = &#39;LOG_MAIL&#39;,
String $cv_logverbose = &#39;no&#39;,
String $cv_logrotate = &#39;yes&#39;,
String $cv_preludeenable = &#39;no&#39;,
String $cv_preludeanalyzername = &#39;ClamAV&#39;,
) {
# service
$cv_service = &#39;clamd@.service&#39;
# dirs
$cv_config_d_dir = &#39;/etc/clamd.d&#39;
# files
$cv_clamd_config_file = &quot;${cv_config_d_dir}/scan.conf&quot;
$cv_clamd_config_erb = &#39;clamav_cd/scan_conf.erb&#39;
$cv_freshclam_file = &#39;/etc/freshclam.conf&#39;
$cv_freshclam_erb = &#39;clamav_cd/freshclam_conf.erb&#39;
# includes must be last
include clamav_cd::main::config
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -1,10 +1,10 @@
## cd_clamav::init.pp ## clamav_cd::init.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class initializes the cd_clamav Module. # @summary Class initializes the clamav_cd Module.
############################################################################## ##############################################################################
class cd_clamav { class clamav_cd {
include cd_clamav::params include clamav_cd::params
resources { 'firewall': resources { 'firewall':
purge => true, purge => true,

View File

@@ -1,11 +1,11 @@
## cd_clamav::main::config.pp ## clamav_cd::main::config.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages all aspects of configuring the module logic for # @summary Class manages all aspects of configuring the module logic for
# cd_clamav. # clamav_cd.
############################################################################## ##############################################################################
class cd_clamav::main::config ( class clamav_cd::main::config (
) inherits cd_clamav::params { ) inherits clamav_cd::params {
include cd_clamav::main::service include clamav_cd::main::service
} }

View File

@@ -1,12 +1,12 @@
## cd_clamav::main::dirs.pp ## clamav_cd::main::dirs.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages all directories required for cd_clamav. # @summary Class manages all directories required for clamav_cd.
############################################################################### ###############################################################################
class cd_clamav::main::dirs ( class clamav_cd::main::dirs (
) inherits cd_clamav::params { ) inherits clamav_cd::params {
require cd_clamav::main::install require clamav_cd::main::install
# config.d dir # config.d dir
file { $cv_config_d_dir: file { $cv_config_d_dir:

View File

@@ -1,12 +1,12 @@
## cd_clamav::main::files.pp ## clamav_cd::main::files.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages all configuration files required for cd_clamav. # @summary Class manages all configuration files required for clamav_cd.
############################################################################## ##############################################################################
class cd_clamav::main::files ( class clamav_cd::main::files (
) inherits cd_clamav::params { ) inherits clamav_cd::params {
require cd_clamav::main::dirs require clamav_cd::main::dirs
# clamd config file # clamd config file
file { $cv_clamd_config_file: file { $cv_clamd_config_file:

View File

@@ -1,12 +1,14 @@
## cd_clamav ::main::install.pp ## clamav_cd ::main::install.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manage all aspects of installing binaries required for # @summary Class manage all aspects of installing binaries required for
# cd_clamav # clamav_cd
############################################################################### ###############################################################################
class cd_clamav::main::install ( class clamav_cd::main::install (
) inherits clamav_cd::params {
require resources_cd::main::epel
) inherits cd_clamav::params {
package { $reqpackages: package { $reqpackages:
ensure => $pkg_ensure, ensure => $pkg_ensure,
} }

View File

@@ -1,12 +1,12 @@
## cd_clamav::main::service.pp ## clamav_cd::main::service.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages the service(s) for cd_clamav. # @summary Class manages the service(s) for clamav_cd.
############################################################################# #############################################################################
class cd_clamav::main::service ( class clamav_cd::main::service (
) inherits cd_clamav::params { ) inherits clamav_cd::params {
require cd_clamav::main::files require clamav_cd::main::files
# service { $cv_service: # service { $cv_service:
# ensure => running, # ensure => running,

View File

@@ -1,7 +1,7 @@
## cd_clamav::params.pp ## clamav_cd::params.pp
# Module name: cd_clamav # Module name: clamav_cd
# Author: Arne Teuke (arne_teuke@confdroid.com) # Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class holds all parameters for the cd_clamav module and is # @summary Class holds all parameters for the clamav_cd module and is
# inherited by all classes except defines. # inherited by all classes except defines.
# @param [String] reqpackages List of packages to install. # @param [String] reqpackages List of packages to install.
# @param [String] pkg_ensure # @param [String] pkg_ensure
@@ -26,7 +26,7 @@
# @param [String] cv_preludeanalyzername name of the analyzer used by # @param [String] cv_preludeanalyzername name of the analyzer used by
# prelude-admin. # prelude-admin.
############################################################################## ##############################################################################
class cd_clamav::params ( class clamav_cd::params (
# installation # installation
String $reqpackages = ['clamav','clamav-update','clamd'], String $reqpackages = ['clamav','clamav-update','clamd'],
@@ -54,11 +54,11 @@ class cd_clamav::params (
# files # files
$cv_clamd_config_file = "${cv_config_d_dir}/scan.conf" $cv_clamd_config_file = "${cv_config_d_dir}/scan.conf"
$cv_clamd_config_erb = 'cd_clamav/scan_conf.erb' $cv_clamd_config_erb = 'clamav_cd/scan_conf.erb'
$cv_freshclam_file = '/etc/freshclam.conf' $cv_freshclam_file = '/etc/freshclam.conf'
$cv_freshclam_erb = 'cd_clamav/freshclam_conf.erb' $cv_freshclam_erb = 'clamav_cd/freshclam_conf.erb'
# includes must be last # includes must be last
include cd_clamav::main::config include clamav_cd::main::config
} }