This file is indexed.

/usr/share/puppet/modules.available/sbitio-monit/manifests/params.pp is in puppet-module-sbitio-monit 1.0.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
class monit::params {

# $caller_module_name is empty when inherited?
#  if $caller_module_name != $module_name {
#    warning("${name} is not part of the public API of the ${module_name} module and should not be directly included in the manifest.")
#  }

  $package = 'monit'
  $service = 'monit'

  $check_interval    = 120
  $check_start_delay = 240

  case $::osfamily {
    'Debian': {
      $conf_file  = '/etc/monit/monitrc'
      $conf_dir   = '/etc/monit/conf.d'
      $logfile    = '/var/log/monit.log'
      $idfile     = '/var/lib/monit/id'
      $statefile  = '/var/lib/monit/state'
      $eventqueue = true

      $service_program = '/usr/sbin/service'
      case $::operatingsystem {
        'Debian': {
          if $::lsbmajdistrelease < 8 {
            $init_system = 'sysv'
          }
          else {
            $init_system     = 'systemd'
            $systemd_unitdir = '/lib/systemd/system'
          }
        }
        'Ubuntu': {
          $init_system = 'upstart'
        }
        default: {
          fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support operatingsystem Debian and Ubuntu on osfamily Debian")
        }
      }
    }
    'RedHat': {
      $conf_file  = '/etc/monit.conf'
      $conf_dir   = '/etc/monit.d'
      $logfile    = '/var/log/monit'
      $idfile     = undef
      $statefile  = undef
      $eventqueue = false

      $service_program = '/sbin/service'
      if $::lsbmajdistrelease < 7 {
        $init_system = 'sysv'
      }
      else {
        $init_system = 'systemd'
        $systemd_unitdir = '/usr/lib/systemd/system'
      }
    }
    default: {
      fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily Debian and RedHat")
    }
  }
}