Documentation by YARD 0.9.36
+Alphabetic Index
+ +Puppet Class Listing A-Z
+ + +
+
+
+
|
+
File Listing
+-
+
+
+
- README + + +
diff --git a/doc/_index.html b/doc/_index.html new file mode 100644 index 0000000..dc4ce47 --- /dev/null +++ b/doc/_index.html @@ -0,0 +1,143 @@ + + +
+ + +
+
+
+
|
+
| t |
+ + + +6 +7 +8 +9 +10 +11 +12+ |
+
+ # File 'manifests/init.pp', line 6
+
+class cd_clamav {
+ include cd_clamav::params
+
+ resources { 'firewall':
+ purge => true,
+ }
+}
+ |
+
cd_clamav::main::config.pp Module name: cd_clamav Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +7 +8 +9 +10 +11+ |
+
+ # File 'manifests/main/config.pp', line 7
+
+class cd_clamav::main::config (
+
+) inherits cd_clamav::params {
+ include cd_clamav::main::service
+}
+ |
+
cd_clamav::main::dirs.pp Module name: cd_clamav Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22+ |
+
+ # File 'manifests/main/dirs.pp', line 6
+
+class cd_clamav::main::dirs (
+
+) inherits cd_clamav::params {
+ require cd_clamav::main::install
+
+ # config.d dir
+ file { $cv_config_d_dir:
+ ensure => directory,
+ owner => 'root',
+ group => 'root',
+ mode => '0755',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ }
+}
+ |
+
cd_clamav::main::files.pp Module name: cd_clamav Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +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+ |
+
+ # File 'manifests/main/files.pp', line 6
+
+class cd_clamav::main::files (
+
+) inherits cd_clamav::params {
+ require cd_clamav::main::dirs
+
+ # clamd config file
+ file { $cv_clamd_config_file:
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ content => template($cv_clamd_config_erb),
+# notify => Service[$cv_service],
+ }
+
+ # freshclam config file
+ file { $cv_freshclam_file:
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0600',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ content => template($cv_freshclam_erb),
+ }
+}
+ |
+
cd_clamav ::main::install.pp Module name: cd_clamav Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +7 +8 +9 +10 +11 +12 +13+ |
+
+ # File 'manifests/main/install.pp', line 7
+
+class cd_clamav::main::install (
+
+) inherits cd_clamav::params {
+ package { $reqpackages:
+ ensure => $pkg_ensure,
+ }
+}
+ |
+
cd_clamav::main::service.pp Module name: cd_clamav Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17+ |
+
+ # File 'manifests/main/service.pp', line 6
+
+class cd_clamav::main::service (
+
+) inherits cd_clamav::params {
+ require cd_clamav::main::files
+
+# service { $cv_service:
+# ensure => running,
+# hasstatus => true,
+# hasrestart => true,
+# enable => true,
+# }
+}
+ |
+
cd_clamav::params.pp Module name: cd_clamav Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +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+ |
+
+ # File 'manifests/params.pp', line 29
+
+class cd_clamav::params (
+
+# installation
+ String $reqpackages = ['clamav','clamav-update','clamd'],
+ String $pkg_ensure = 'present',
+
+# clamd
+ String $cv_logfile = '/var/log/clamd.scan',
+ String $cv_logfileunlock = 'no',
+ String $cv_logfilemaxsize = '2M',
+ String $cv_logtime = 'yes',
+ String $cv_logclean = 'no',
+ String $cv_logsyslog = 'yes',
+ String $cv_logfacility = 'LOG_MAIL',
+ String $cv_logverbose = 'no',
+ String $cv_logrotate = 'yes',
+ String $cv_preludeenable = 'no',
+ String $cv_preludeanalyzername = 'ClamAV',
+
+) {
+ # service
+ $cv_service = 'clamd@.service'
+
+ # dirs
+ $cv_config_d_dir = '/etc/clamd.d'
+
+ # files
+ $cv_clamd_config_file = "${cv_config_d_dir}/scan.conf"
+ $cv_clamd_config_erb = 'cd_clamav/scan_conf.erb'
+ $cv_freshclam_file = '/etc/freshclam.conf'
+ $cv_freshclam_erb = 'cd_clamav/freshclam_conf.erb'
+
+ # includes must be last
+
+ include cd_clamav::main::config
+}
+ |
+
clamav_cd::init.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12+ |
+
+ # File 'manifests/init.pp', line 6
+
+class clamav_cd {
+ include clamav_cd::params
+
+ resources { 'firewall':
+ purge => true,
+ }
+}
+ |
+
clamav_cd::main::config.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +7 +8 +9 +10 +11+ |
+
+ # File 'manifests/main/config.pp', line 7
+
+class clamav_cd::main::config (
+
+) inherits clamav_cd::params {
+ include clamav_cd::main::service
+}
+ |
+
clamav_cd::main::dirs.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22+ |
+
+ # File 'manifests/main/dirs.pp', line 6
+
+class clamav_cd::main::dirs (
+
+) inherits clamav_cd::params {
+ require clamav_cd::main::install
+
+ # config.d dir
+ file { $cv_config_d_dir:
+ ensure => directory,
+ owner => 'root',
+ group => 'root',
+ mode => '0755',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ }
+}
+ |
+
clamav_cd::main::files.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +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+ |
+
+ # File 'manifests/main/files.pp', line 6
+
+class clamav_cd::main::files (
+
+) inherits clamav_cd::params {
+ require clamav_cd::main::dirs
+
+ # clamd config file
+ file { $cv_clamd_config_file:
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ content => template($cv_clamd_config_erb),
+# notify => Service[$cv_service],
+ }
+
+ # freshclam config file
+ file { $cv_freshclam_file:
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0600',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ content => template($cv_freshclam_erb),
+ }
+}
+ |
+
clamav_cd ::main::install.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +7 +8 +9 +10 +11 +12 +13 +14 +15+ |
+
+ # File 'manifests/main/install.pp', line 7
+
+class clamav_cd::main::install (
+
+) inherits clamav_cd::params {
+ require resources_cd::main::epel
+
+ package { $reqpackages:
+ ensure => $pkg_ensure,
+ }
+}
+ |
+
clamav_cd::main::service.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17+ |
+
+ # File 'manifests/main/service.pp', line 6
+
+class clamav_cd::main::service (
+
+) inherits clamav_cd::params {
+ require clamav_cd::main::files
+
+# service { $cv_service:
+# ensure => running,
+# hasstatus => true,
+# hasrestart => true,
+# enable => true,
+# }
+}
+ |
+
clamav_cd::params.pp Module name: clamav_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +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+ |
+
+ # File 'manifests/params.pp', line 29
+
+class clamav_cd::params (
+
+# installation
+ Array $reqpackages = ['clamav','clamd'],
+ String $pkg_ensure = 'present',
+
+# clamd
+ String $cv_logfile = '/var/log/clamd.scan',
+ String $cv_logfileunlock = 'no',
+ String $cv_logfilemaxsize = '2M',
+ String $cv_logtime = 'yes',
+ String $cv_logclean = 'no',
+ String $cv_logsyslog = 'yes',
+ String $cv_logfacility = 'LOG_MAIL',
+ String $cv_logverbose = 'no',
+ String $cv_logrotate = 'yes',
+ String $cv_preludeenable = 'no',
+ String $cv_preludeanalyzername = 'ClamAV',
+
+) {
+ # service
+ $cv_service = 'clamd@.service'
+
+ # dirs
+ $cv_config_d_dir = '/etc/clamd.d'
+
+ # files
+ $cv_clamd_config_file = "${cv_config_d_dir}/scan.conf"
+ $cv_clamd_config_erb = 'clamav_cd/scan_conf.erb'
+ $cv_freshclam_file = '/etc/freshclam.conf'
+ $cv_freshclam_erb = 'clamav_cd/freshclam_conf.erb'
+
+ # includes must be last
+
+ include clamav_cd::main::config
+}
+ |
+