add EPEL resource
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
## cd_clamav::init.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd::init.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class initializes the cd_clamav Module.
|
||||
# @summary Class initializes the clamav_cd Module.
|
||||
##############################################################################
|
||||
class cd_clamav {
|
||||
include cd_clamav::params
|
||||
class clamav_cd {
|
||||
include clamav_cd::params
|
||||
|
||||
resources { 'firewall':
|
||||
purge => true,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
## cd_clamav::main::config.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd::main::config.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @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 {
|
||||
include cd_clamav::main::service
|
||||
) inherits clamav_cd::params {
|
||||
include clamav_cd::main::service
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## cd_clamav::main::dirs.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd::main::dirs.pp
|
||||
# Module name: clamav_cd
|
||||
# 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 {
|
||||
require cd_clamav::main::install
|
||||
) inherits clamav_cd::params {
|
||||
require clamav_cd::main::install
|
||||
|
||||
# config.d dir
|
||||
file { $cv_config_d_dir:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## cd_clamav::main::files.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd::main::files.pp
|
||||
# Module name: clamav_cd
|
||||
# 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 {
|
||||
require cd_clamav::main::dirs
|
||||
) inherits clamav_cd::params {
|
||||
require clamav_cd::main::dirs
|
||||
|
||||
# clamd config file
|
||||
file { $cv_clamd_config_file:
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
## cd_clamav ::main::install.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd ::main::install.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @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:
|
||||
ensure => $pkg_ensure,
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## cd_clamav::main::service.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd::main::service.pp
|
||||
# Module name: clamav_cd
|
||||
# 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 {
|
||||
require cd_clamav::main::files
|
||||
) inherits clamav_cd::params {
|
||||
require clamav_cd::main::files
|
||||
|
||||
# service { $cv_service:
|
||||
# ensure => running,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## cd_clamav::params.pp
|
||||
# Module name: cd_clamav
|
||||
## clamav_cd::params.pp
|
||||
# Module name: clamav_cd
|
||||
# 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.
|
||||
# @param [String] reqpackages List of packages to install.
|
||||
# @param [String] pkg_ensure
|
||||
@@ -26,7 +26,7 @@
|
||||
# @param [String] cv_preludeanalyzername name of the analyzer used by
|
||||
# prelude-admin.
|
||||
##############################################################################
|
||||
class cd_clamav::params (
|
||||
class clamav_cd::params (
|
||||
|
||||
# installation
|
||||
String $reqpackages = ['clamav','clamav-update','clamd'],
|
||||
@@ -54,11 +54,11 @@ class cd_clamav::params (
|
||||
|
||||
# files
|
||||
$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_erb = 'cd_clamav/freshclam_conf.erb'
|
||||
$cv_freshclam_erb = 'clamav_cd/freshclam_conf.erb'
|
||||
|
||||
# includes must be last
|
||||
|
||||
include cd_clamav::main::config
|
||||
include clamav_cd::main::config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user