Merge branch 'jenkins' into 'master'

Jenkins

See merge request !29
This commit is contained in:
12ww1160
2017-07-30 13:40:00 +02:00
20 changed files with 74 additions and 25 deletions

View File

@@ -8,6 +8,16 @@ Changelog of Git Changelog.
<h2> No issue </h2> <h2> No issue </h2>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/7a767e39dc3aa27">7a767e39dc3aa27</a> Arne Teuke <i>2017-07-30 11:42:09</i>
<p>
<h3>fixed typo, added including clause to definitions</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/501d59832c2f525">501d59832c2f525</a> Jenkins Server <i>2017-07-30 11:42:02</i>
<p>
<h3>recommit for updates in build 41</h3>
</p>
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/d9e6db5e0d5b277">d9e6db5e0d5b277</a> Arne Teuke <i>2017-07-30 11:32:29</i> <a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/d9e6db5e0d5b277">d9e6db5e0d5b277</a> Arne Teuke <i>2017-07-30 11:32:29</i>
<p> <p>
<h3>updated README, added defintions</h3> <h3>updated README, added defintions</h3>

View File

@@ -87,6 +87,8 @@ There are currently no mandatory parameters, i.e. the module will function right
* `$ne_include_selinux` : Whether to manage selinux exception rules. Defaults to `true`. * `$ne_include_selinux` : Whether to manage selinux exception rules. Defaults to `true`.
### Managing Check Commands ### Managing Check Commands
In order to connect a Nagios monitoring server to clients through NRPE, you must define commands and the desired argument strings on the clients.
### SELINUX ### SELINUX
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored. All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.

View File

@@ -9,6 +9,7 @@
| | |-- full_list.js | | |-- full_list.js
| | `-- jquery.js | | `-- jquery.js
| |-- puppet_classes | |-- puppet_classes
| | |-- cd_nrpe_3A_3Acommands_3A_3Adefinition_rules.html
| | |-- cd_nrpe_3A_3Acommands_3A_3Adefinitions.html | | |-- cd_nrpe_3A_3Acommands_3A_3Adefinitions.html
| | |-- cd_nrpe_3A_3Afirewall_3A_3Aiptables.html | | |-- cd_nrpe_3A_3Afirewall_3A_3Aiptables.html
| | |-- cd_nrpe_3A_3Amain_3A_3Aconfig.html | | |-- cd_nrpe_3A_3Amain_3A_3Aconfig.html
@@ -60,4 +61,4 @@
|-- README.md |-- README.md
`-- REPOSTRUCTURE.md `-- REPOSTRUCTURE.md
11 directories, 49 files 11 directories, 50 files

View File

@@ -171,7 +171,7 @@
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:41:58 2017 by Generated on Sun Jul 30 13:50:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -217,6 +217,9 @@ rules. Defaults to <code>true</code>.</p>
<h3 id="label-Managing+Check+Commands">Managing Check Commands</h3> <h3 id="label-Managing+Check+Commands">Managing Check Commands</h3>
<p>In order to connect a Nagios monitoring server to clients through NRPE, you
must define commands and the desired argument strings on the clients.</p>
<h3 id="label-SELINUX">SELINUX</h3> <h3 id="label-SELINUX">SELINUX</h3>
<p>All files and directories are configured with correct selinux context. If <p>All files and directories are configured with correct selinux context. If
@@ -277,7 +280,7 @@ environments.</p>
</div></div> </div></div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:41:59 2017 by Generated on Sun Jul 30 13:50:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -217,6 +217,9 @@ rules. Defaults to <code>true</code>.</p>
<h3 id="label-Managing+Check+Commands">Managing Check Commands</h3> <h3 id="label-Managing+Check+Commands">Managing Check Commands</h3>
<p>In order to connect a Nagios monitoring server to clients through NRPE, you
must define commands and the desired argument strings on the clients.</p>
<h3 id="label-SELINUX">SELINUX</h3> <h3 id="label-SELINUX">SELINUX</h3>
<p>All files and directories are configured with correct selinux context. If <p>All files and directories are configured with correct selinux context. If
@@ -277,7 +280,7 @@ environments.</p>
</div></div> </div></div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:41:58 2017 by Generated on Sun Jul 30 13:50:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -140,7 +140,7 @@ class cd_nrpe {
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:41:59 2017 by Generated on Sun Jul 30 13:50:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -120,6 +120,17 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
</div> </div>
<div class="tags"> <div class="tags">
<div class="examples">
<p class="tag_title">Examples:</p>
<pre class="example code"><code>cd_nrpe::commands::definitions { &#39;check_users&#39;:
ne_check_cmd =&gt; &#39;check_users&#39;,
ne_cmd_argstring =&gt; &#39;-w $ARG1$ -c $ARG2$&#39;,
}</code></pre>
</div>
</div><div class="method_details_list"> </div><div class="method_details_list">
<table class="source_code"> <table class="source_code">
@@ -128,11 +139,6 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
<pre class="lines"> <pre class="lines">
23
24
25
26
27
28 28
29 29
30 30
@@ -161,10 +167,20 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
53 53
54 54
55 55
56</pre> 56
57
58
59
60
61
62
63
64
65
66</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/commands/definition_rules.pp', line 23</span> <pre class="code"><span class="info file"># File 'manifests/commands/definition_rules.pp', line 28</span>
class cd_nrpe::commands::definition_rules ( class cd_nrpe::commands::definition_rules (
@@ -197,6 +213,11 @@ class cd_nrpe::commands::definition_rules (
# basic example rules # basic example rules
cd_nrpe::commands::definitions { &#39;check_users&#39;:
ne_check_cmd =&gt; &#39;check_users&#39;,
ne_cmd_argstring =&gt; &#39;-w $ARG1$ -c $ARG2$&#39;,
}
} }
}</pre> }</pre>
@@ -207,7 +228,7 @@ class cd_nrpe::commands::definition_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:46 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -165,7 +165,7 @@ class cd_nrpe::firewall::iptables (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -154,7 +154,7 @@ class cd_nrpe::main::config (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -205,7 +205,7 @@ class cd_nrpe::main::dirs (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -217,7 +217,7 @@ class cd_nrpe::main::files (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -160,7 +160,7 @@ class cd_nrpe::main::install (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -183,7 +183,7 @@ class cd_nrpe::main::service (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -193,7 +193,7 @@ class cd_nrpe::main::user (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -1059,7 +1059,7 @@ $ne_cmd_rule_erb = &#39;cd_nrpe/cmd_rule.erb&#39;
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -238,7 +238,7 @@ $ne_manage_cmds = $::cd_nrpe::params::ne_manage_cmds
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:42:00 2017 by Generated on Sun Jul 30 13:50:46 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -90,7 +90,7 @@
</div> </div>
<div id="footer"> <div id="footer">
Generated on Sun Jul 30 13:41:59 2017 by Generated on Sun Jul 30 13:50:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -19,6 +19,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# @summary manage command definitions via define and Puppet rules. # @summary manage command definitions via define and Puppet rules.
# @example
# cd_nrpe::commands::definitions { 'check_users':
# ne_check_cmd => 'check_users',
# ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
# }
############################################################################### ###############################################################################
class cd_nrpe::commands::definition_rules ( class cd_nrpe::commands::definition_rules (
@@ -51,6 +56,11 @@ class cd_nrpe::commands::definition_rules (
# basic example rules # basic example rules
cd_nrpe::commands::definitions { 'check_users':
ne_check_cmd => 'check_users',
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
}
} }
} }

View File

@@ -1,4 +1,3 @@
################################################################################ ################################################################################
########## commandsmds.cfg managed by Puppet ########## ### commands.cfg managed by Puppet | manual changes will be overwritten ###
########## manual changes will be orverwritten ##########
################################################################################ ################################################################################