summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/manifests/plugins.pp
blob: 90a01cfbacf57a98cc32db3ab537759e648ec9c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Deploy generic plugins useful to all nodes
# nagios::plugin won't work to deploy a plugin
# because it complains with:
# Could not find dependency Package[nagios-plugins] …
# at /srv/leap/puppet/modules/nagios/manifests/plugin.pp:18
class site_nagios::plugins {

  file { [
    '/usr/local/lib', '/usr/local/lib/nagios',
    '/usr/local/lib/nagios/plugins' ]:
      ensure => directory;
    '/usr/local/lib/nagios/plugins/check_last_regex_in_log':
      source => 'puppet:///modules/site_nagios/plugins/check_last_regex_in_log',
      mode   => '0755';
  }
}