Puppet Class: maldet

Defined in:
manifests/init.pp

Overview

Install and configure Linux Malware Detect

Examples:

Declaring the class

include ::maldet

Parameters:

  • version (String)

    Version of Maldet to install. Defaults to ‘1.5’

  • package_name (String)

    Optional package name to use. Will install from source if left empty. Defaults to ”

  • ensure (String)

    Whether to install or remove maldet. Valid values are “present” or “absent”. Defaults to ‘present’

  • service_ensure (String)

    Whether the maldet inotify monitor service should be running

  • daily_scan (Boolean)

    Whether to enable maldet’s daily scan cron job. Defaults to true.

  • mirror_url (String)

    Base URL to download maldet source tarball from. Defaults to ‘www.rfxn.com/downloads

  • config (Hash)

    Hash of config options to use. Booleans are converted to 0 or 1. options with multiple values such as email_addr and scan_tmpdir_paths should be specified as an Array.

  • cron_config (Hash)

    Separate hash of config options for maldet’s daily cron job.

  • monitor_paths (Array)

    list of paths that the maldet service should monitor files under. Note that directories containing large numbers of files will lead to long startup times for the maldet services.

  • cleanup_old_install (Boolean)

    Whether old backups of /usr/local/maldetect created by Maldet’s install.sh should be removed. Defaults to true.

  • manage_epel (Boolean)

    Setup epel repository on Redhat based systems (required for some dependencies)

See Also:



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/init.pp', line 22

class maldet (
  String  $version,
  String  $package_name,
  String  $ensure,
  String  $service_ensure,
  Boolean $daily_scan,
  String  $mirror_url,
  Hash    $config,
  Array   $monitor_paths,
  Hash    $cron_config,
  Boolean $cleanup_old_install,
  Boolean $manage_epel,
) {

  contain maldet::install
  contain maldet::config
  contain maldet::service

  Class['maldet::install'] ~>
  Class['maldet::config'] ~>
  Class['maldet::service']
}