recommit for updates in build 4
This commit is contained in:
@@ -144,7 +144,7 @@ class cd_apache::main::config (
|
||||
) inherits cd_apache::params {
|
||||
|
||||
include cd_apache::server::service
|
||||
|
||||
include cd_apache::monitoring::target
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
195
doc/puppet_classes/cd_apache_3A_3Amonitoring_3A_3Atarget.html
Normal file
195
doc/puppet_classes/cd_apache_3A_3Amonitoring_3A_3Atarget.html
Normal file
@@ -0,0 +1,195 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_apache::monitoring::target
|
||||
|
||||
— Documentation by YARD 0.9.12
|
||||
|
||||
</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_apache::monitoring::target";
|
||||
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_apache::monitoring::target</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_apache::monitoring::target</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_apache_3A_3Aparams.html" title="puppet_classes::cd_apache::params (puppet_class)">cd_apache::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/monitoring/target.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
class manages exports for nagios monitoring
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_apache::monitoring::target.pp
|
||||
Module name: cd_apache
|
||||
Author: Arne Teuke
|
||||
(arne_teuke@puppetsoft.com)
|
||||
License:
|
||||
This file is part of cd_apache.</p>
|
||||
|
||||
<p>cd_apache is used for providing automatic configuration of
|
||||
<service /
|
||||
purpose>
|
||||
Copyright (C) 2014 PuppetSoft (copyright@puppetsoft.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">
|
||||
|
||||
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/monitoring/target.pp', line 24</span>
|
||||
|
||||
class cd_apache::monitoring::target (
|
||||
|
||||
) inherits cd_apache::params {
|
||||
|
||||
case $ae_incl_target {
|
||||
|
||||
false: { notify {'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
|
||||
}
|
||||
default: {
|
||||
@@nagios_service { "check_http_${::hostname}":
|
||||
check_command => 'check_http',
|
||||
use => 'generic-service',
|
||||
host_name => $::fqdn,
|
||||
notification_period => '24x7',
|
||||
service_description => "${::hostname}_check_http",
|
||||
target => $ae_target_service,
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '6640',
|
||||
contacts => 'ops',
|
||||
}
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -79,6 +79,8 @@
|
||||
|
||||
<span class='object_link'><a href="cd_apache_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_apache::server::service (puppet_class)">cd_apache::server::service</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_apache_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::cd_apache::monitoring::target (puppet_class)">cd_apache::monitoring::target</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -380,6 +382,37 @@ disabled.</p>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ae_incl_target</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether or not to allow nagios monitoring.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ae_target_service</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'/etc/nagios/conf.d/httpd_service.cfg'</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -390,7 +423,6 @@ disabled.</p>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
@@ -451,10 +483,15 @@ disabled.</p>
|
||||
116
|
||||
117
|
||||
118
|
||||
119</pre>
|
||||
119
|
||||
120
|
||||
121
|
||||
122
|
||||
123
|
||||
124</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 58</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 59</span>
|
||||
|
||||
class cd_apache::params (
|
||||
|
||||
@@ -474,6 +511,10 @@ $ae_manage_cfg = false,
|
||||
$ae_manage_dirs = true,
|
||||
$ae_allow_user_dirs = false,
|
||||
|
||||
# nagios
|
||||
$ae_incl_target = true,
|
||||
$ae_target_service = '/etc/nagios/conf.d/httpd_service.cfg',
|
||||
|
||||
) {
|
||||
|
||||
# installation section
|
||||
|
||||
Reference in New Issue
Block a user