Defined Type: logrotate::conf

Defined in:
modules/logrotate/manifests/conf.pp

Overview

Define logrotate::conf

Thin helper for the definition of logrotate rules. It basically ensure consistency and that we don't risk things like phabricator.wikimedia.org/T127025 to happen again

Parameters:

  • ensure (Any) (defaults to: present)
  • source (Any) (defaults to: undef)
  • content (Any) (defaults to: undef)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/logrotate/manifests/conf.pp', line 7

define logrotate::conf (
    $ensure = present,
    $source = undef,
    $content = undef,
) {

    file { "/etc/logrotate.d/${title}":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => $source,
        content => $content,
    }
}