add EPEL resource
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user