Merge branch 'jenkins' into 'master'

Jenkins

See merge request !47
This commit is contained in:
12ww1160
2017-07-25 18:04:29 +02:00
25 changed files with 287 additions and 122 deletions

View File

@@ -8,6 +8,41 @@ Changelog of Git Changelog.
<h2> No issue </h2>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/cc2d2cbf2968cce">cc2d2cbf2968cce</a> Jenkins Server <i>2017-07-25 15:57:28</i>
<p>
<h3>recommit for updates in build 90</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/6a57847a121f632">6a57847a121f632</a> Arne Teuke <i>2017-07-25 15:57:10</i>
<p>
<h3>added contact stanza</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/8a97768e4b258d7">8a97768e4b258d7</a> Arne Teuke <i>2017-07-25 15:46:00</i>
<p>
<h3>added template concat</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/53e7b9d0b24391e">53e7b9d0b24391e</a> Arne Teuke <i>2017-07-25 15:39:28</i>
<p>
<h3>added template concat</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/f5657930f604a9a">f5657930f604a9a</a> Arne Teuke <i>2017-07-25 15:32:38</i>
<p>
<h3>added and linked template_rules</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/633f59375b02f4b">633f59375b02f4b</a> Arne Teuke <i>2017-07-25 15:30:03</i>
<p>
<h3>added and linked template_rules</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/0f8cf13c3ea9b4a">0f8cf13c3ea9b4a</a> Arne Teuke <i>2017-07-25 14:56:52</i>
<p>
<h3>linked commands.pp</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/b4b3de53a39ef00">b4b3de53a39ef00</a> Jenkins Server <i>2017-07-25 14:48:58</i>
<p>
<h3>recommit for updates in build 84</h3>

View File

@@ -18,6 +18,7 @@
| | |-- cd_nagios_3A_3Amain_3A_3Ainstall.html
| | |-- cd_nagios_3A_3Amain_3A_3Auser.html
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html
| | |-- cd_nagios_3A_3Aparams.html
| | |-- cd_nagios_3A_3Aselinux_3A_3Aconfig.html
| | |-- cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html
@@ -25,6 +26,7 @@
| | |-- cd_nagios_3A_3Aserver_3A_3Aservice.html
| | `-- cd_nagios.html
| |-- puppet_defined_types
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html
| | `-- cd_nagios_3A_3Aserver_3A_3Aaccess.html
| |-- file.README.html
| |-- frames.html
@@ -88,4 +90,4 @@
|-- README.md
`-- REPOSTRUCTURE.md
20 directories, 68 files
20 directories, 70 files

View File

@@ -201,7 +201,7 @@
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:18 2017 by
Generated on Tue Jul 25 18:13:33 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>

View File

@@ -338,7 +338,7 @@ environments.</p>
</div></div>
<div id="footer">
Generated on Tue Jul 25 17:57:19 2017 by
Generated on Tue Jul 25 18:13:35 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>

View File

@@ -338,7 +338,7 @@ environments.</p>
</div></div>
<div id="footer">
Generated on Tue Jul 25 17:57:18 2017 by
Generated on Tue Jul 25 18:13:34 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>

View File

@@ -139,7 +139,7 @@ class cd_nagios {
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:19 2017 by
Generated on Tue Jul 25 18:13:35 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>

View File

@@ -230,7 +230,7 @@ class cd_nagios::certbot::certs (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -368,7 +368,7 @@ class cd_nagios::client::target (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -207,7 +207,7 @@ class cd_nagios::firewall::iptables (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -195,7 +195,7 @@ class cd_nagios::main::config (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -468,7 +468,7 @@ class cd_nagios::main::dirs (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:38 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>

View File

@@ -235,7 +235,7 @@ class cd_nagios::main::install (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -200,7 +200,7 @@ class cd_nagios::main::user (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:38 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>

View File

@@ -595,7 +595,7 @@ class cd_nagios::nagios::objects::commands (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -169,7 +169,8 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.
50
51
52
53</pre>
53
54</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/template_rules.pp', line 26</span>
@@ -197,8 +198,9 @@ class cd_nagios::nagios::objects::template_rules (
}
# example rule
cd_nagios::objects::templates { $name:
ng_template_object =&gt; &#39;contact&#39;,
cd_nagios::objects::templates { &#39;generic contact&#39;:
ng_template_object =&gt; &#39;contact&#39;,
ng_template_object_name =&gt; &#39;generic-contact&#39;,
}
}
}</pre>
@@ -209,7 +211,7 @@ class cd_nagios::nagios::objects::template_rules (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:40 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>

View File

@@ -5557,7 +5557,7 @@ $ng_target_command = &quot;${ng_conf_d_dir}/nagios_command.cfg&quot;
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:38 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>

View File

@@ -249,7 +249,7 @@ class cd_nagios::selinux::config (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -195,7 +195,7 @@ class cd_nagios::server::access_rules (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -334,7 +334,7 @@ class cd_nagios::server::files (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:23 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -270,7 +270,7 @@ class cd_nagios::server::service (
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:39 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>

View File

@@ -121,12 +121,19 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
<span class='name'>ng_template_object</span>
<span class='type'>(<tt>Any</tt>)</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>the object type for the templates.
valid options are <code>contact</code>,
<code>host</code> and <code>service</code>.</p>
</div>
</li>
<li>
@@ -134,12 +141,19 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
<span class='name'>ng_template_object_name</span>
<span class='type'>(<tt>Any</tt>)</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>populates the name field,
i.e. <code>generic-contact</code>,
<code>generic-host</code>, <code>generic-service</code>.</p>
</div>
</li>
<li>
@@ -147,12 +161,158 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
<span class='name'>ng_svc_notification_period</span>
<span class='type'>(<tt>Any</tt>)</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;24x7&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Period in which to send out
notifications for service events, i.e.
<code>24x7</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_svc_notification_period</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;24x7&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Period in which to send out
notifications for host events , i.e.
<code>24x7</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_service_notification_options</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;w,u,c,r,f,s&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>What service events to send
out notifications for:
w = notify on WARNING
service states,
u = notify on UNKNOWN service states,
c = notify on
CRITICAL service states,
r = notify on service recoveries (OK states),
f =
notify when the service starts and stops flapping.
n = none (the contact
will not receive any type of service notifications).</p>
</div>
</li>
<li>
<span class='name'>ng_host_notification_options</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;d,u,r,f,s&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>What host events to send
out notifications for:
d = notify on DOWN host
states,
u = notify on UNREACHABLE host states,
r = notify on host
recoveries (UP states),
f = notify when the host starts and stops
flapping,
s = snotify when host or service scheduled downtime starts and
ends.
n = none (the contact will not receive any type of host
notifications).</p>
</div>
</li>
<li>
<span class='name'>ng_service_notification_commands</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;notify-service-by-email&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Command to use for
service event notification. Command must be defined in
commands.cfg</p>
</div>
</li>
<li>
<span class='name'>ng_host_notification_commands</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;notify-host-by-email&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Command to use for
host event notification. Command must be defined in
commands.cfg.</p>
</div>
</li>
<li>
<span class='name'>ng_object_register</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to register the object to Nagios.
Since this is a template
definition, we do not want to register those.</p>
</div>
</li>
<li>
@@ -168,71 +328,6 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
</li>
<li>
<span class='name'>ng_service_notification_options</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;w,u,c,r,f,s&#39;</tt>)</em>
</li>
<li>
<span class='name'>ng_host_notification_options</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;d,u,r,f,s&#39;</tt>)</em>
</li>
<li>
<span class='name'>ng_service_notification_commands</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;notify-service-by-email&#39;</tt>)</em>
</li>
<li>
<span class='name'>ng_host_notification_commands</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;notify-host-by-email&#39;</tt>)</em>
</li>
<li>
<span class='name'>ng_object_register</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0&#39;</tt>)</em>
</li>
</ul>
@@ -243,35 +338,35 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
<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</pre>
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/templates.pp', line 23</span>
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/templates.pp', line 53</span>
define cd_nagios::nagios::objects::templates (
@@ -306,7 +401,7 @@ $ng_templates_rule_erb = $::cd_nagios::params::ng_templates_rule_erb
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:40 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>

View File

@@ -220,7 +220,7 @@ $ng_service = $::cd_nagios::params::ng_service
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:24 2017 by
Generated on Tue Jul 25 18:13:40 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>

View File

@@ -90,7 +90,7 @@
</div>
<div id="footer">
Generated on Tue Jul 25 17:57:19 2017 by
Generated on Tue Jul 25 18:13:35 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>

View File

@@ -46,8 +46,9 @@ class cd_nagios::nagios::objects::template_rules (
}
# example rule
cd_nagios::objects::templates { $name:
ng_template_object => 'contact',
cd_nagios::objects::templates { 'generic contact':
ng_template_object => 'contact',
ng_template_object_name => 'generic-contact',
}
}
}

View File

@@ -19,6 +19,36 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# @summary Define manages populates /etc/nagios/conf.d/templates.cfg.
# @param [string] ng_template_object the object type for the templates.
# valid options are `contact`, `host` and `service`.
# @param [string] ng_template_object_name populates the name field,
# i.e. `generic-contact`, `generic-host`, `generic-service`.
# @param [string] ng_svc_notification_period Period in which to send out
# notifications for service events, i.e. `24x7`.
# @param [string] ng_svc_notification_period Period in which to send out
# notifications for host events , i.e. `24x7`.
# @param [string] ng_service_notification_options What service events to send
# out notifications for:
# w = notify on WARNING service states,
# u = notify on UNKNOWN service states,
# c = notify on CRITICAL service states,
# r = notify on service recoveries (OK states),
# f = notify when the service starts and stops flapping.
# n = none (the contact will not receive any type of service notifications).
# @param [string] ng_host_notification_options What host events to send
# out notifications for:
# d = notify on DOWN host states,
# u = notify on UNREACHABLE host states,
# r = notify on host recoveries (UP states),
# f = notify when the host starts and stops flapping,
# s = snotify when host or service scheduled downtime starts and ends.
# n = none (the contact will not receive any type of host notifications).
# @param [string] ng_service_notification_commands Command to use for
# service event notification. Command must be defined in commands.cfg
# @param [string] ng_host_notification_commands Command to use for
# host event notification. Command must be defined in commands.cfg.
# @param [string] ng_object_register Whether to register the object to Nagios.
# Since this is a template definition, we do not want to register those.
################################################################################
define cd_nagios::nagios::objects::templates (