Puppet Class: aide::config

Defined in:
manifests/config.pp

Summary

This class manages aide configurations.

Overview

Copyright © 2022 The Trustees of Indiana University SPDX-License-Identifier: BSD-3-Clause

Examples:

include aide::config

Parameters:

  • conf_path (String)
  • db_path (String)
  • db_temp_path (String)
  • gzip_dbout (Boolean)
  • aide_log (String)
  • syslogout (Boolean)
  • report_ignore_e2fsattrs (Optional[String])
  • config_template (String)


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

class aide::config (
  String $conf_path,
  String $db_path,
  String $db_temp_path,
  Boolean $gzip_dbout,
  String $aide_log,
  Boolean $syslogout,
  Optional[String] $report_ignore_e2fsattrs,
  String $config_template,
) {
  concat { 'aide.conf':
    path  => $conf_path,
    owner => 'root',
    group => 'root',
    mode  => '0600',
  }

  concat::fragment { 'aide.conf.header':
    target  => 'aide.conf',
    order   => '01',
    content => template( $config_template ),
  }

  concat::fragment { 'rule_header':
    target  => 'aide.conf',
    order   => '02',
    content => "\n# User defined rules\n",
  }

  concat::fragment { 'watch_header':
    target  => 'aide.conf',
    order   => '45',
    content => "\n# Files and directories to scan\n",
  }
}