Puppet Class: confdroid_clamav::main::files

Inherits:
confdroid_clamav::params
Defined in:
manifests/main/files.pp

Summary

Class manages all configuration files required for confdroid_clamav.

Overview

confdroid_clamav::main::files.pp Module name: confdroid_clamav Author: 12ww1160 (12ww1160@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
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
# File 'manifests/main/files.pp', line 6

class confdroid_clamav::main::files (

) inherits confdroid_clamav::params {
  require confdroid_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),
  }

  # freshclam service config file
  file { $cv_freshclam_svc  :
    ensure   => file,
    owner    => 'root',
    group    => 'root',
    mode     => '0600',
    selrange => s0,
    selrole  => object_r,
    seltype  => etc_t,
    seluser  => system_u,
    content  => template($cv_freshclam_svc_erb),
  }

  # shell script for scanning and alerting
  file { $cv_shell_script  :
    ensure   => file,
    owner    => 'root',
    group    => 'root',
    mode     => '0750',
    selrange => s0,
    selrole  => object_r,
    seltype  => etc_t,
    seluser  => system_u,
    content  => template($cv_shell_script_erb),
  }
}