Puppet Class: monit::config::debian

Defined in:
manifests/config/debian.pp

Overview

Class: monit::config::debian

Setup Debian-specific aspects of monit configuration. Currently installs a proper /etc/default/monit file to enable monit on boot.

Parameters:

  • ensure (Any)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/config/debian.pp', line 7

class monit::config::debian
(
    $ensure
)
{

    $ensure_file = $ensure ? {
        /(present|running)/ => present,
        'absent' => absent,
    }

    file { 'monit-monit-debian':
        ensure  => $ensure_file,
        name    => '/etc/default/monit',
        content => template('monit/monit-debian.erb'),
        owner   => $::os::params::adminuser,
        group   => $::os::params::admingroup,
        mode    => '0644',
        require => Class['monit::install'],
        notify  => Class['monit::service'],
    }
}