OP#785 initial commit
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
## clamav_cd::main::config.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_clamav::main::config.pp
|
||||
# Module name: confdroid_clamav
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages all aspects of configuring the module logic for
|
||||
# clamav_cd.
|
||||
# confdroid_clamav.
|
||||
##############################################################################
|
||||
class clamav_cd::main::config (
|
||||
class confdroid_clamav::main::config (
|
||||
|
||||
) inherits clamav_cd::params {
|
||||
include clamav_cd::main::service
|
||||
) inherits confdroid_clamav::params {
|
||||
include confdroid_clamav::main::service
|
||||
|
||||
# Ensure the SELinux boolean antivirus_can_scan_system is enabled if disabled
|
||||
exec { 'enable_antivirus_can_scan_system':
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## clamav_cd::main::dirs.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages all directories required for clamav_cd.
|
||||
## confdroid_clamav::main::dirs.pp
|
||||
# Module name: confdroid_clamav
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages all directories required for confdroid_clamav.
|
||||
###############################################################################
|
||||
class clamav_cd::main::dirs (
|
||||
class confdroid_clamav::main::dirs (
|
||||
|
||||
) inherits clamav_cd::params {
|
||||
require clamav_cd::main::install
|
||||
) inherits confdroid_clamav::params {
|
||||
require confdroid_clamav::main::install
|
||||
|
||||
# config.d dir
|
||||
file { $cv_config_d_dir:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## clamav_cd::main::files.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages all configuration files required for clamav_cd.
|
||||
## confdroid_clamav::main::files.pp
|
||||
# Module name: confdroid_clamav
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages all configuration files required for confdroid_clamav.
|
||||
##############################################################################
|
||||
class clamav_cd::main::files (
|
||||
class confdroid_clamav::main::files (
|
||||
|
||||
) inherits clamav_cd::params {
|
||||
require clamav_cd::main::dirs
|
||||
) inherits confdroid_clamav::params {
|
||||
require confdroid_clamav::main::dirs
|
||||
|
||||
# clamd config file
|
||||
file { $cv_clamd_config_file:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## clamav_cd ::main::install.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_clamav ::main::install.pp
|
||||
# Module name: confdroid_clamav
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manage all aspects of installing binaries required for
|
||||
# clamav_cd
|
||||
# confdroid_clamav
|
||||
###############################################################################
|
||||
class clamav_cd::main::install (
|
||||
class confdroid_clamav::main::install (
|
||||
|
||||
) inherits clamav_cd::params {
|
||||
) inherits confdroid_clamav::params {
|
||||
require confdroid_resources::main::epel
|
||||
|
||||
package { $reqpackages:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## clamav_cd::main::service.pp
|
||||
# Module name: clamav_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages the service(s) for clamav_cd.
|
||||
## confdroid_clamav::main::service.pp
|
||||
# Module name: confdroid_clamav
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages the service(s) for confdroid_clamav.
|
||||
#############################################################################
|
||||
class clamav_cd::main::service (
|
||||
class confdroid_clamav::main::service (
|
||||
|
||||
) inherits clamav_cd::params {
|
||||
require clamav_cd::main::files
|
||||
) inherits confdroid_clamav::params {
|
||||
require confdroid_clamav::main::files
|
||||
|
||||
if $cv_enable_clamd == true {
|
||||
service { $cv_service:
|
||||
|
||||
Reference in New Issue
Block a user