recommit for updates in build 40
This commit is contained in:
@@ -140,7 +140,7 @@ class cd_nrpe {
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:54 2017 by
|
||||
Generated on Sun Jul 30 13:32:18 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
217
doc/puppet_classes/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html
Normal file
217
doc/puppet_classes/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html
Normal file
@@ -0,0 +1,217 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nrpe::commands::definitions
|
||||
|
||||
— Documentation by YARD 0.9.9
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
||||
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
pathId = "puppet_classes::cd_nrpe::commands::definitions";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav_wrap">
|
||||
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
|
||||
<div id="resizer"></div>
|
||||
</div>
|
||||
|
||||
<div id="main" tabindex="-1">
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">cd_nrpe::commands::definitions</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search">
|
||||
|
||||
<a class="full_list_link" id="puppet_class_list_link"
|
||||
href="../puppet_class_list.html">
|
||||
|
||||
<svg width="24" height="24">
|
||||
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: cd_nrpe::commands::definitions</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nrpe_3A_3Aparams.html" title="puppet_classes::cd_nrpe::params (puppet_class)">cd_nrpe::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/commands/definition_rules.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
manage command definitions via define and Puppet rules.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nrpe::commands::definition_rules.pp
|
||||
Module name: cd_nrpe
|
||||
Author: Arne
|
||||
Teuke (arne_teuke@ConfDroid.com)</p>
|
||||
|
||||
<h1 id="label-License%3A">License:</h1>
|
||||
|
||||
<p>This file is part of cd_nrpe.</p>
|
||||
|
||||
<p>cd_nrpe is used for providing automatic configuration of NRPE.
|
||||
Copyright
|
||||
(C) 2016 ConfDroid (copyright@ConfDroid.com)
|
||||
This program is free
|
||||
software: you can redistribute it and/or modify
|
||||
it under the terms of the
|
||||
GNU General Public License as published by
|
||||
the Free Software Foundation,
|
||||
either version 3 of the License, or
|
||||
(at your option) any later version.</p>
|
||||
|
||||
<p>This program is distributed in the hope that it will be useful,
|
||||
but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License
|
||||
for more details.</p>
|
||||
|
||||
<p>You should have received a copy of the GNU General Public License
|
||||
along
|
||||
with this program. If not, see <a
|
||||
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
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</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/commands/definition_rules.pp', line 23</span>
|
||||
|
||||
class cd_nrpe::commands::definitions (
|
||||
|
||||
) inherits cd_nrpe::params {
|
||||
|
||||
if $ne_manage_cmds == true {
|
||||
|
||||
# manage the commands.cfg file
|
||||
|
||||
concat { $ne_cmd_file:
|
||||
ensure => present,
|
||||
path => $ne_cmd_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => nrpe_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[$ne_service],
|
||||
}
|
||||
|
||||
# manage the file header
|
||||
|
||||
concat::fragment { 'nrpe_cmd_header':
|
||||
target => $ne_cmd_file,
|
||||
content => template($ne_cmd_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
|
||||
# basic example rules
|
||||
|
||||
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -165,7 +165,7 @@ class cd_nrpe::firewall::iptables (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -154,7 +154,7 @@ class cd_nrpe::main::config (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -205,7 +205,7 @@ class cd_nrpe::main::dirs (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -217,7 +217,7 @@ class cd_nrpe::main::files (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@ class cd_nrpe::main::install (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -145,7 +145,11 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
37
|
||||
38
|
||||
39
|
||||
40</pre>
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 23</span>
|
||||
@@ -160,6 +164,10 @@ class cd_nrpe::main::service (
|
||||
|
||||
require cd_nrpe::main::files
|
||||
|
||||
if $ne_manage_cmds == true {
|
||||
require cd_nrpe::commands::definition_rules
|
||||
}
|
||||
|
||||
service { $ne_service:
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
@@ -175,7 +183,7 @@ class cd_nrpe::main::service (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -193,7 +193,7 @@ class cd_nrpe::main::user (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
@@ -81,6 +81,8 @@
|
||||
|
||||
<span class='object_link'><a href="cd_nrpe_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::cd_nrpe::firewall::iptables (puppet_class)">cd_nrpe::firewall::iptables</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nrpe_3A_3Acommands_3A_3Adefinitions.html" title="puppet_classes::cd_nrpe::commands::definitions (puppet_class)">cd_nrpe::commands::definitions</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -843,6 +845,26 @@ needed.</p>
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to enable SSL certificates.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ne_manage_cmds</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to manage command rules for NRPE
|
||||
checks, to allow dynamic check
|
||||
& command rules.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -864,8 +886,6 @@ needed.</p>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
99
|
||||
100
|
||||
101
|
||||
102
|
||||
103
|
||||
@@ -939,15 +959,24 @@ needed.</p>
|
||||
171
|
||||
172
|
||||
173
|
||||
174</pre>
|
||||
174
|
||||
175
|
||||
176
|
||||
177
|
||||
178
|
||||
179
|
||||
180
|
||||
181</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 99</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 101</span>
|
||||
|
||||
class cd_nrpe::params (
|
||||
|
||||
$pkg_ensure = 'latest',
|
||||
|
||||
$ne_manage_cmds = true,
|
||||
|
||||
# user settings
|
||||
$ne_user = 'nrpe',
|
||||
$ne_user_comment = 'NRPE service user',
|
||||
@@ -1014,6 +1043,9 @@ $ne_main_conf_erb = 'cd_nrpe/nrpe_cfg.erb'
|
||||
$ne_nrpe_pid_file = "${ne_run_dir}/nrpe.pid"
|
||||
$ne_nrpe_conf_file = '/etc/sysconfig/nrpe'
|
||||
$ne_nrpe_conf_erb = 'cd_nrpe/nrpe_conf.erb'
|
||||
$ne_cmd_file = "${ne_main_conf_d_dir}/commands.cfg"
|
||||
$ne_cmd_head_erb = 'cd_nrpe/cmd_head.erb'
|
||||
$ne_cmd_rule_erb = 'cd_nrpe/cmd_rule.erb'
|
||||
|
||||
# includes must be last
|
||||
|
||||
@@ -1027,7 +1059,7 @@ $ne_nrpe_conf_erb = 'cd_nrpe/nrpe_conf.erb'
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri Jul 28 20:48:55 2017 by
|
||||
Generated on Sun Jul 30 13:32:19 2017 by
|
||||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.9 (ruby-2.0.0).
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user