This file is indexed.

/usr/share/puppet/modules.available/puppet-community-mcollective/spec/fixtures/modules/site_nagios/manifests/mcollective.pp is in puppet-module-puppet-community-mcollective 0.6.2-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
# This would be the module you put on all your nrpe-monitored nodes
class site_nagios::mcollective {
  # fake install nrpe
  file { ['/etc/nagios', '/etc/nagios/nrpe.d']:
      ensure => 'directory',
  }

  file { '/etc/nagios/nrpe.d/hello_world.cfg':
      content => "command[hello_world]=echo Hello World!\n",
  }

  mcollective::plugin { 'nrpe':
    package => true,
  }

  mcollective::actionpolicy { 'nrpe':
    default  => 'deny',
  }

  mcollective::actionpolicy::rule { 'root nrpe':
    agent    => 'nrpe',
    callerid => 'cert=root',
  }

  mcollective::actionpolicy::rule { 'nagios nrpe':
    agent    => 'nrpe',
    callerid => 'cert=nagios',
    actions  => 'runcommand',
  }
}