Puppet Class: rkhunter::config

Defined in:
manifests/config.pp

Overview

Class: rkhunter::config

This module contain the configuration for rkhunter

=== Parameters

Parameters:

  • allow_parameters (Any) (defaults to: {})

    List of custom parameters



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
# File 'manifests/config.pp', line 9

class rkhunter::config (
  $allow_parameters    = {},
  ) {

  file { $rkhunter::params::config_rkhunter_conf:
    ensure  => file,
    mode    => '0640',
    path    => $rkhunter::params::config_rkhunter_conf,
    content => template($rkhunter::params::config_rkhunter_conf_template);
  }

  file { $rkhunter::params::config_rkhunter_sys_conf:
    ensure  => file,
    mode    => '0640',
    path    => $rkhunter::params::config_rkhunter_sys_conf,
    content => template($rkhunter::params::config_rkhunter_sys_conf_template);
  }

  file { $rkhunter::params::config_rkhunter_script_directory:
    ensure => directory,
    mode   => '0755';
  }

  file { $rkhunter::params::config_rkhunter_script:
    ensure  => file,
    mode    => '0755',
    path    => $rkhunter::params::config_rkhunter_script,
    content => template($rkhunter::params::config_rkhunter_script_template);
  }
}