10
CHANGELOG.md
10
CHANGELOG.md
@@ -8,6 +8,16 @@ Changelog of Git Changelog.
|
||||
<h2> No issue </h2>
|
||||
|
||||
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/f4321e6da976742">f4321e6da976742</a> Jenkins Server <i>2017-07-27 11:58:59</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 113</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/842d86a504f6198">842d86a504f6198</a> Arne Teuke <i>2017-07-27 11:58:30</i>
|
||||
<p>
|
||||
<h3>added _ to service name</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/cad8229c0821ad4">cad8229c0821ad4</a> Jenkins Server <i>2017-07-27 11:44:51</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 112</h3>
|
||||
|
||||
@@ -61,6 +61,8 @@
|
||||
| | |-- add_contactgroups_rules.pp
|
||||
| | |-- add_contact.pp
|
||||
| | |-- add_contact_rules.pp
|
||||
| | |-- add_hostgroup_rules.pp
|
||||
| | |-- add_hostgroups.pp
|
||||
| | |-- commands.pp
|
||||
| | |-- config.pp
|
||||
| | |-- contactgroups.pp
|
||||
@@ -93,6 +95,8 @@
|
||||
| | |-- contacts.cfg
|
||||
| | |-- contacts_cfg_head.erb
|
||||
| | |-- contacts_cfg_rule.erb
|
||||
| | |-- hostgroups_cfg_head.erb
|
||||
| | |-- hostgroups_cfg_rule.erb
|
||||
| | |-- htpasswd_rule.erb
|
||||
| | |-- nagios_cfg.erb
|
||||
| | |-- templates_cfg_head.erb
|
||||
@@ -110,4 +114,4 @@
|
||||
|-- README.md
|
||||
`-- REPOSTRUCTURE.md
|
||||
|
||||
20 directories, 90 files
|
||||
20 directories, 94 files
|
||||
|
||||
@@ -118,6 +118,11 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroup_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_hostgroup_rules (puppet_class)">cd_nagios::nagios::objects::add_hostgroup_rules</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html" title="puppet_classes::cd_nagios::nagios::objects::commands (puppet_class)">cd_nagios::nagios::objects::commands</a></span>
|
||||
|
||||
@@ -203,6 +208,11 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroups.html" title="puppet_defined_types::cd_nagios::nagios::objects::add_hostgroups (puppet_defined_type)">cd_nagios::nagios::objects::add_hostgroups</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html" title="puppet_defined_types::cd_nagios::nagios::objects::templates (puppet_defined_type)">cd_nagios::nagios::objects::templates</a></span>
|
||||
|
||||
@@ -241,7 +251,7 @@
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:47 2017 by
|
||||
Generated on Thu Jul 27 14:33:07 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>
|
||||
|
||||
@@ -365,7 +365,7 @@ environments.</p>
|
||||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:49 2017 by
|
||||
Generated on Thu Jul 27 14:33:08 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>
|
||||
|
||||
@@ -365,7 +365,7 @@ environments.</p>
|
||||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:48 2017 by
|
||||
Generated on Thu Jul 27 14:33:07 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>
|
||||
|
||||
@@ -110,77 +110,84 @@
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::commands" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::add_hostgroup_rules" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroup_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_hostgroup_rules (puppet_class)">cd_nagios::nagios::objects::add_hostgroup_rules</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::commands" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html" title="puppet_classes::cd_nagios::nagios::objects::commands (puppet_class)">cd_nagios::nagios::objects::commands</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::config" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::config" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aconfig.html" title="puppet_classes::cd_nagios::nagios::objects::config (puppet_class)">cd_nagios::nagios::objects::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::contactgroups" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::contactgroups" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acontactgroups.html" title="puppet_classes::cd_nagios::nagios::objects::contactgroups (puppet_class)">cd_nagios::nagios::objects::contactgroups</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::contacts" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::contacts" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acontacts.html" title="puppet_classes::cd_nagios::nagios::objects::contacts (puppet_class)">cd_nagios::nagios::objects::contacts</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::hostgroups" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::hostgroups" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Ahostgroups.html" title="puppet_classes::cd_nagios::nagios::objects::hostgroups (puppet_class)">cd_nagios::nagios::objects::hostgroups</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::template_rules" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::template_rules" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html" title="puppet_classes::cd_nagios::nagios::objects::template_rules (puppet_class)">cd_nagios::nagios::objects::template_rules</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::params" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::params" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::selinux::config" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::selinux::config" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html" title="puppet_classes::cd_nagios::selinux::config (puppet_class)">cd_nagios::selinux::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::server::access_rules" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::server::access_rules" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html" title="puppet_classes::cd_nagios::server::access_rules (puppet_class)">cd_nagios::server::access_rules</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::server::files" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::server::files" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aserver_3A_3Afiles.html" title="puppet_classes::cd_nagios::server::files (puppet_class)">cd_nagios::server::files</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::server::service" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::server::service" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_nagios::server::service (puppet_class)">cd_nagios::server::service</a></span>
|
||||
</div>
|
||||
|
||||
@@ -139,7 +139,7 @@ class cd_nagios {
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:49 2017 by
|
||||
Generated on Thu Jul 27 14:33:08 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>
|
||||
|
||||
@@ -230,7 +230,7 @@ class cd_nagios::certbot::certs (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -368,7 +368,7 @@ class cd_nagios::client::target (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -207,7 +207,7 @@ class cd_nagios::firewall::iptables (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -195,7 +195,7 @@ class cd_nagios::main::config (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:12 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>
|
||||
|
||||
@@ -468,7 +468,7 @@ class cd_nagios::main::dirs (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:12 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>
|
||||
|
||||
@@ -235,7 +235,7 @@ class cd_nagios::main::install (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:12 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>
|
||||
|
||||
@@ -200,7 +200,7 @@ class cd_nagios::main::user (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:12 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>
|
||||
|
||||
@@ -210,7 +210,7 @@ class cd_nagios::nagios::objects::add_contact_rules (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:14 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>
|
||||
|
||||
@@ -227,7 +227,7 @@ class cd_nagios::nagios::objects::add_contactgroups_rules (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:14 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>
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nagios::nagios::objects::add_hostgroup_rules
|
||||
|
||||
— 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_nagios::nagios::objects::add_hostgroup_rules";
|
||||
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_nagios::nagios::objects::add_hostgroup_rules</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_nagios::nagios::objects::add_hostgroup_rules</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/add_hostgroup_rules.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages /etc/nagios_conf.d/nagios_hostgroups_add.cfg and
|
||||
additional hostgroups through external Puppet rules via define.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::add_hostgroup_rules.pp
|
||||
Module name:
|
||||
cd_nagios
|
||||
Author: Arne Teuke (arne_teuke@ConfDroid.com)</p>
|
||||
|
||||
<h1 id="label-License%3A">License:</h1>
|
||||
|
||||
<p>This file is part of cd_nagios.</p>
|
||||
|
||||
<p>cd_nagios is used for providing automatic configuration of Nagios
|
||||
|
||||
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 class="examples">
|
||||
<p class="tag_title">Examples:</p>
|
||||
|
||||
|
||||
<pre class="example code"><code>cd_nagios::nagios::objects::add_hostgroups { 'example_hostgroup':
|
||||
ng_hostgroup_name => 'example_hostgroup',
|
||||
ng_hostgroup_alias => 'Example Hostgroup',
|
||||
}</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
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
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_hostgroup_rules.pp', line 29</span>
|
||||
|
||||
class cd_nagios::nagios::objects::add_hostgroup_rules (
|
||||
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
# manage /etc/nagios_conf.d/nagios_hostgroups_add.cfg
|
||||
|
||||
concat { $ng_tgt_hostgroup_add:
|
||||
ensure => present,
|
||||
path => $ng_tgt_hostgroup_add,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => nagios_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[$ng_service],
|
||||
}
|
||||
|
||||
# manage file header
|
||||
|
||||
concat::fragment { 'hostgroups_header':
|
||||
target => $ng_tgt_hostgroup_add,
|
||||
content => template($ng_tgt_hostgrp_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
|
||||
cd_nagios::nagios::objects::add_hostgroups { 'example_hostgroup':
|
||||
ng_hostgroup_name => 'example_hostgroup',
|
||||
ng_hostgroup_alias => 'Example Hostgroup',
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 14:33:14 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>
|
||||
@@ -595,7 +595,7 @@ class cd_nagios::nagios::objects::commands (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -144,7 +144,8 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
35
|
||||
36
|
||||
37
|
||||
38</pre>
|
||||
38
|
||||
39</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/config.pp', line 23</span>
|
||||
@@ -162,6 +163,7 @@ class cd_nagios::nagios::objects::config (
|
||||
require cd_nagios::nagios::objects::contactgroups
|
||||
require cd_nagios::nagios::objects::add_contactgroups_rules
|
||||
require cd_nagios::nagios::objects::hostgroups
|
||||
require cd_nagios::nagios::objects::add_hostgroup_rules
|
||||
|
||||
}
|
||||
}</pre>
|
||||
@@ -172,7 +174,7 @@ class cd_nagios::nagios::objects::config (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -237,7 +237,7 @@ class cd_nagios::nagios::objects::contactgroups (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:14 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>
|
||||
|
||||
@@ -280,7 +280,7 @@ class cd_nagios::nagios::objects::contacts (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -356,7 +356,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
|
||||
@@ -370,7 +370,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# CentOS servers
|
||||
@@ -383,7 +383,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# SuSE servers
|
||||
@@ -396,7 +396,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Unix servers
|
||||
@@ -409,7 +409,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Solaris servers
|
||||
@@ -422,7 +422,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# AIX servers
|
||||
@@ -435,7 +435,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Windows servers
|
||||
@@ -448,7 +448,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Netware servers
|
||||
@@ -461,7 +461,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# DB servers
|
||||
@@ -474,7 +474,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Oracle servers
|
||||
@@ -487,7 +487,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# MySQL servers
|
||||
@@ -500,7 +500,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# MSSQL servers
|
||||
@@ -513,7 +513,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# NOSQL servers
|
||||
@@ -526,7 +526,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Hadoop servers
|
||||
@@ -539,7 +539,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -551,7 +551,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -305,7 +305,7 @@ class cd_nagios::nagios::objects::template_rules (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:14 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>
|
||||
|
||||
@@ -103,6 +103,8 @@
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_contact_rules (puppet_class)">cd_nagios::nagios::objects::add_contact_rules</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroup_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_hostgroup_rules (puppet_class)">cd_nagios::nagios::objects::add_hostgroup_rules</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_contactgroups_rules (puppet_class)">cd_nagios::nagios::objects::add_contactgroups_rules</a></span><br/>
|
||||
|
||||
</dd>
|
||||
@@ -5225,7 +5227,9 @@ up</p>
|
||||
986
|
||||
987
|
||||
988
|
||||
989</pre>
|
||||
989
|
||||
990
|
||||
991</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 646</span>
|
||||
@@ -5552,7 +5556,9 @@ $ng_templates_rule_erb = 'cd_nagios/nagios/templates_cfg_rule.erb'
|
||||
$ng_target_timeperiods = "${ng_conf_d_dir}/timeperiods.cfg"
|
||||
$ng_target_localhost = "${ng_conf_d_dir}/nagios_localhost.cfg"
|
||||
$ng_target_host = "${ng_conf_d_dir}/nagios_host.cfg"
|
||||
$ng_target_hostgroup = "${ng_conf_d_dir}/nagios_hostgroups_base.cfg"
|
||||
$ng_target_hostgroup_base = "${ng_conf_d_dir}/nagios_hostgroups_base.cfg"
|
||||
$ng_tgt_hostgroup_add = "${ng_conf_d_dir}/nagios_hostgroups_add.cfg"
|
||||
$ng_tgt_hostgrp_head_erb = 'cd_nagios/nagios/hostgroups_cfg_head.erb'
|
||||
$ng_target_hostdep = "${ng_conf_d_dir}/nagios_hostdependency.cfg"
|
||||
$ng_target_hostesc = "${ng_conf_d_dir}/nagios_hostescalation.cfg"
|
||||
$ng_target_hostext = "${ng_conf_d_dir}/nagios_hostextinfo.cfg"
|
||||
@@ -5581,7 +5587,7 @@ $ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:12 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>
|
||||
|
||||
@@ -249,7 +249,7 @@ class cd_nagios::selinux::config (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -195,7 +195,7 @@ class cd_nagios::server::access_rules (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:54 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -334,7 +334,7 @@ class cd_nagios::server::files (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:12 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>
|
||||
|
||||
@@ -192,7 +192,8 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
83
|
||||
84
|
||||
85
|
||||
86</pre>
|
||||
86
|
||||
87</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 23</span>
|
||||
@@ -219,11 +220,12 @@ class cd_nagios::server::service (
|
||||
use => 'generic-service',
|
||||
host_name => $::fqdn,
|
||||
notification_period => '24x7',
|
||||
service_description => "${::hostname}_nagios_service",
|
||||
target => $ng_target_service,
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '660',
|
||||
contacts => 'DevOps',
|
||||
mode => '0660',
|
||||
contacts => 'ops',
|
||||
}
|
||||
|
||||
resources { [ 'nagios_host',
|
||||
@@ -268,7 +270,7 @@ class cd_nagios::server::service (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:53 2017 by
|
||||
Generated on Thu Jul 27 14:33:13 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>
|
||||
|
||||
@@ -54,14 +54,21 @@
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::cd_nagios::nagios::objects::templates" class="odd">
|
||||
<li id="object_puppet_defined_types::cd_nagios::nagios::objects::add_hostgroups" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroups.html" title="puppet_defined_types::cd_nagios::nagios::objects::add_hostgroups (puppet_defined_type)">cd_nagios::nagios::objects::add_hostgroups</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::cd_nagios::nagios::objects::templates" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html" title="puppet_defined_types::cd_nagios::nagios::objects::templates (puppet_defined_type)">cd_nagios::nagios::objects::templates</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::cd_nagios::server::access" class="even">
|
||||
<li id="object_puppet_defined_types::cd_nagios::server::access" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html" title="puppet_defined_types::cd_nagios::server::access (puppet_defined_type)">cd_nagios::server::access</a></span>
|
||||
</div>
|
||||
|
||||
@@ -114,7 +114,20 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
|
||||
<div class="examples">
|
||||
<p class="tag_title">Examples:</p>
|
||||
|
||||
|
||||
<pre class="example code"><code>cd_nagios::nagios::objects::add_contact { 'example_user':
|
||||
ng_contact_name => 'example_user',
|
||||
ng_contact_alias => 'Example User',
|
||||
ng_contact_groups => 'admins',
|
||||
ng_contact_email => 'example@example.net',
|
||||
}</code></pre>
|
||||
|
||||
</div>
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
@@ -192,12 +205,6 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
@@ -213,10 +220,16 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
43
|
||||
44
|
||||
45
|
||||
46</pre>
|
||||
46
|
||||
47
|
||||
48
|
||||
49
|
||||
50
|
||||
51
|
||||
52</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_contact.pp', line 25</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_contact.pp', line 31</span>
|
||||
|
||||
define cd_nagios::nagios::objects::add_contact (
|
||||
|
||||
@@ -247,7 +260,7 @@ $ng_contacts_rule_erb = $::cd_nagios::params::ng_contacts_rule_erb
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:55 2017 by
|
||||
Generated on Thu Jul 27 14:33:15 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>
|
||||
|
||||
@@ -237,7 +237,7 @@ $ng_cntctgrps_rule_erb = $::cd_nagios::params::ng_cntctgrps_rule_erb
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:55 2017 by
|
||||
Generated on Thu Jul 27 14:33:15 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>
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Defined Type: cd_nagios::nagios::objects::add_hostgroups
|
||||
|
||||
— 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_defined_types::cd_nagios::nagios::objects::add_hostgroups";
|
||||
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_defined_type_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'>Defined Types</span></span>
|
||||
»
|
||||
<span class="title">cd_nagios::nagios::objects::add_hostgroups</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>Defined Type: cd_nagios::nagios::objects::add_hostgroups</h1>
|
||||
<div class="box_info">
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/add_hostgroups.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
define populates /etc/nagios/conf.d/nagios_hostgroups_add through
|
||||
extermal Puppet rules.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::add_hostgroups.pp
|
||||
Module name:
|
||||
cd_nagios
|
||||
Author: Arne Teuke (arne_teuke@ConfDroid.com)</p>
|
||||
|
||||
<h1 id="label-License%3A">License:</h1>
|
||||
|
||||
<p>This file is part of cd_nagios.</p>
|
||||
|
||||
<p>cd_nagios is used for providing automatic configuration of Nagios
|
||||
|
||||
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 class="examples">
|
||||
<p class="tag_title">Examples:</p>
|
||||
|
||||
|
||||
<pre class="example code"><code>cd_nagios::nagios::objects::add_hostgroups { 'example_hostgroup':
|
||||
ng_hostgroup_name => 'example_hostgroup',
|
||||
ng_hostgroup_alias => 'Example Hostgroup',
|
||||
}</code></pre>
|
||||
|
||||
</div>
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_hostgroup_name</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_hostgroup_alias</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_hostgroup_register</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48
|
||||
49</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_hostgroups.pp', line 29</span>
|
||||
|
||||
define cd_nagios::nagios::objects::add_hostgroups (
|
||||
|
||||
$ng_hostgroup_name = undef,
|
||||
$ng_hostgroup_alias = undef,
|
||||
$ng_hostgroup_register = '1',
|
||||
|
||||
) {
|
||||
|
||||
$ng_nagios_server = $::cd_nagios::params::ng_nagios_server
|
||||
$ng_tgt_hostgroup_add = $::cd_nagios::params::ng_tgt_hostgroup_add
|
||||
$ng_tgt_hostgrp_head_erb = $::cd_nagios::params::ng_tgt_hostgrp_head_erb
|
||||
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
concat::fragment { $name:
|
||||
target => $ng_tgt_hostgroup_add,
|
||||
content => template($ng_tgt_hostgrp_head_erb),
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 14:33:15 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>
|
||||
@@ -935,7 +935,7 @@ $ng_templates_rule_erb = $::cd_nagios::params::ng_templates_rule_erb
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:55 2017 by
|
||||
Generated on Thu Jul 27 14:33:15 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>
|
||||
|
||||
@@ -220,7 +220,7 @@ $ng_service = $::cd_nagios::params::ng_service
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:55 2017 by
|
||||
Generated on Thu Jul 27 14:33:14 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>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Thu Jul 27 13:58:49 2017 by
|
||||
Generated on Thu Jul 27 14:33:08 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>
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
# @summary Define manages additional contacts known to NAGIOS through external
|
||||
# Puppet rules, and populates /etc/nagios/conf.d/nagios_add_contact.cfg.
|
||||
# @example
|
||||
# cd_nagios::nagios::objects::add_contact { 'example_user':
|
||||
# ng_contact_name => 'example_user',
|
||||
# ng_contact_alias => 'Example User',
|
||||
# ng_contact_groups => 'admins',
|
||||
# ng_contact_email => 'example@example.net',
|
||||
# }
|
||||
################################################################################
|
||||
define cd_nagios::nagios::objects::add_contact (
|
||||
|
||||
|
||||
64
manifests/nagios/objects/add_hostgroup_rules.pp
Normal file
64
manifests/nagios/objects/add_hostgroup_rules.pp
Normal file
@@ -0,0 +1,64 @@
|
||||
## cd_nagios::nagios::objects::add_hostgroup_rules.pp
|
||||
# Module name: cd_nagios
|
||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||
# # License:
|
||||
# This file is part of cd_nagios.
|
||||
#
|
||||
# cd_nagios is used for providing automatic configuration of Nagios
|
||||
# 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.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# 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 Class manages /etc/nagios_conf.d/nagios_hostgroups_add.cfg and
|
||||
# additional hostgroups through external Puppet rules via define.
|
||||
# @example
|
||||
# cd_nagios::nagios::objects::add_hostgroups { 'example_hostgroup':
|
||||
# ng_hostgroup_name => 'example_hostgroup',
|
||||
# ng_hostgroup_alias => 'Example Hostgroup',
|
||||
# }
|
||||
################################################################################
|
||||
class cd_nagios::nagios::objects::add_hostgroup_rules (
|
||||
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
# manage /etc/nagios_conf.d/nagios_hostgroups_add.cfg
|
||||
|
||||
concat { $ng_tgt_hostgroup_add:
|
||||
ensure => present,
|
||||
path => $ng_tgt_hostgroup_add,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => nagios_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[$ng_service],
|
||||
}
|
||||
|
||||
# manage file header
|
||||
|
||||
concat::fragment { 'hostgroups_header':
|
||||
target => $ng_tgt_hostgroup_add,
|
||||
content => template($ng_tgt_hostgrp_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
|
||||
cd_nagios::nagios::objects::add_hostgroups { 'example_hostgroup':
|
||||
ng_hostgroup_name => 'example_hostgroup',
|
||||
ng_hostgroup_alias => 'Example Hostgroup',
|
||||
}
|
||||
}
|
||||
}
|
||||
49
manifests/nagios/objects/add_hostgroups.pp
Normal file
49
manifests/nagios/objects/add_hostgroups.pp
Normal file
@@ -0,0 +1,49 @@
|
||||
## cd_nagios::nagios::objects::add_hostgroups.pp
|
||||
# Module name: cd_nagios
|
||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||
# # License:
|
||||
# This file is part of cd_nagios.
|
||||
#
|
||||
# cd_nagios is used for providing automatic configuration of Nagios
|
||||
# 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.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# 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 populates /etc/nagios/conf.d/nagios_hostgroups_add through
|
||||
# extermal Puppet rules.
|
||||
# @example
|
||||
# cd_nagios::nagios::objects::add_hostgroups { 'example_hostgroup':
|
||||
# ng_hostgroup_name => 'example_hostgroup',
|
||||
# ng_hostgroup_alias => 'Example Hostgroup',
|
||||
# }
|
||||
###############################################################################
|
||||
define cd_nagios::nagios::objects::add_hostgroups (
|
||||
|
||||
$ng_hostgroup_name = undef,
|
||||
$ng_hostgroup_alias = undef,
|
||||
$ng_hostgroup_register = '1',
|
||||
|
||||
) {
|
||||
|
||||
$ng_nagios_server = $::cd_nagios::params::ng_nagios_server
|
||||
$ng_tgt_hostgroup_add = $::cd_nagios::params::ng_tgt_hostgroup_add
|
||||
$ng_tgt_hostgrp_head_erb = $::cd_nagios::params::ng_tgt_hostgrp_head_erb
|
||||
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
concat::fragment { $name:
|
||||
target => $ng_tgt_hostgroup_add,
|
||||
content => template($ng_tgt_hostgrp_head_erb),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,6 +33,7 @@ class cd_nagios::nagios::objects::config (
|
||||
require cd_nagios::nagios::objects::contactgroups
|
||||
require cd_nagios::nagios::objects::add_contactgroups_rules
|
||||
require cd_nagios::nagios::objects::hostgroups
|
||||
require cd_nagios::nagios::objects::add_hostgroup_rules
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# CentOS servers
|
||||
@@ -65,7 +65,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# SuSE servers
|
||||
@@ -78,7 +78,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Unix servers
|
||||
@@ -91,7 +91,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Solaris servers
|
||||
@@ -104,7 +104,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# AIX servers
|
||||
@@ -117,7 +117,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Windows servers
|
||||
@@ -130,7 +130,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Netware servers
|
||||
@@ -143,7 +143,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# DB servers
|
||||
@@ -156,7 +156,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Oracle servers
|
||||
@@ -169,7 +169,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# MySQL servers
|
||||
@@ -182,7 +182,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# MSSQL servers
|
||||
@@ -195,7 +195,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# NOSQL servers
|
||||
@@ -208,7 +208,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
# Hadoop servers
|
||||
@@ -221,7 +221,7 @@ class cd_nagios::nagios::objects::hostgroups (
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup,
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -965,7 +965,9 @@ $ng_templates_rule_erb = 'cd_nagios/nagios/templates_cfg_rule.erb'
|
||||
$ng_target_timeperiods = "${ng_conf_d_dir}/timeperiods.cfg"
|
||||
$ng_target_localhost = "${ng_conf_d_dir}/nagios_localhost.cfg"
|
||||
$ng_target_host = "${ng_conf_d_dir}/nagios_host.cfg"
|
||||
$ng_target_hostgroup = "${ng_conf_d_dir}/nagios_hostgroups_base.cfg"
|
||||
$ng_target_hostgroup_base = "${ng_conf_d_dir}/nagios_hostgroups_base.cfg"
|
||||
$ng_tgt_hostgroup_add = "${ng_conf_d_dir}/nagios_hostgroups_add.cfg"
|
||||
$ng_tgt_hostgrp_head_erb = 'cd_nagios/nagios/hostgroups_cfg_head.erb'
|
||||
$ng_target_hostdep = "${ng_conf_d_dir}/nagios_hostdependency.cfg"
|
||||
$ng_target_hostesc = "${ng_conf_d_dir}/nagios_hostescalation.cfg"
|
||||
$ng_target_hostext = "${ng_conf_d_dir}/nagios_hostextinfo.cfg"
|
||||
|
||||
@@ -42,11 +42,12 @@ class cd_nagios::server::service (
|
||||
use => 'generic-service',
|
||||
host_name => $::fqdn,
|
||||
notification_period => '24x7',
|
||||
service_description => "${::hostname}_nagios_service",
|
||||
target => $ng_target_service,
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '660',
|
||||
contacts => 'DevOps',
|
||||
mode => '0660',
|
||||
contacts => 'ops',
|
||||
}
|
||||
|
||||
resources { [ 'nagios_host',
|
||||
|
||||
5
templates/nagios/hostgroups_cfg_head.erb
Normal file
5
templates/nagios/hostgroups_cfg_head.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
###############################################################################
|
||||
########## nagios_hostgroups_add.cfg created by Puppet ##########
|
||||
########## manual changes are overwritten! ##########
|
||||
###############################################################################
|
||||
# rules are created below by external puppet rules.
|
||||
6
templates/nagios/hostgroups_cfg_rule.erb
Normal file
6
templates/nagios/hostgroups_cfg_rule.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name <%= @ng_hostgroup_name %>
|
||||
alias <%= @ng_hostgroup_alias %>
|
||||
register <%= @ng_hostgroup_register %>
|
||||
}
|
||||
Reference in New Issue
Block a user