Puppet Class: omd::client::checks::install

Defined in:
manifests/client/checks/install.pp

Overview

(private) install checks



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
# File 'manifests/client/checks/install.pp', line 2

class omd::client::checks::install {

  $plugin_path = $omd::client::checks::params::plugin_path

  File {
    owner  => 'root',
    group  => 'root',
    mode   => '0755',
  }

  # create dir for plugins
  $plugin_dirs = prefix(['/nagios', '/nagios/plugins'], $plugin_path)
  file { $plugin_dirs:
    ensure => directory,
  }

  # install checks
  file { 'check_puppet':
    path   => "${plugin_path}/nagios/plugins/check_puppet.rb",
    source => 'puppet:///modules/omd/checks/check_puppet.rb',
  }

  file { 'check_cert':
    path   => "${plugin_path}/nagios/plugins/check_cert.rb",
    source => 'puppet:///modules/omd/checks/check_cert.rb',
  }

}