Merge branch 'master' of gitlab.puppetsoft.com:12ww1160/cd_nrpe into HEAD
This commit is contained in:
120
CHANGELOG.md
120
CHANGELOG.md
@@ -8,6 +8,126 @@ Changelog of Git Changelog.
|
|||||||
<h2> No issue </h2>
|
<h2> No issue </h2>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/27d1b70d6198a0b">27d1b70d6198a0b</a> Arne Teuke <i>2017-07-30 16:58:43</i>
|
||||||
|
<p>
|
||||||
|
<h3>added selinux boolean</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/ec7f399399f478d">ec7f399399f478d</a> Jenkins Server <i>2017-07-30 16:58:35</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 56</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/fb36a697dfe257d">fb36a697dfe257d</a> Arne Teuke <i>2017-07-30 16:55:59</i>
|
||||||
|
<p>
|
||||||
|
<h3>added selinux boolean</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/97ae206fc0ae30a">97ae206fc0ae30a</a> Arne Teuke <i>2017-07-30 16:52:17</i>
|
||||||
|
<p>
|
||||||
|
<h3>added selinux boolean</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/3bd54a36afb4f35">3bd54a36afb4f35</a> Arne Teuke <i>2017-07-30 16:51:22</i>
|
||||||
|
<p>
|
||||||
|
<h3>added details to sudo rule</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/aaaa1589020220e">aaaa1589020220e</a> Arne Teuke <i>2017-07-30 15:22:49</i>
|
||||||
|
<p>
|
||||||
|
<h3>fixed sudo rule</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/803a084de9e91ee">803a084de9e91ee</a> Jenkins Server <i>2017-07-30 15:22:44</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 53</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/4ea243c21706dd4">4ea243c21706dd4</a> Arne Teuke <i>2017-07-30 14:55:05</i>
|
||||||
|
<p>
|
||||||
|
<h3>adding nrpe user to sudo rule</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/94a9416c2644175">94a9416c2644175</a> Jenkins Server <i>2017-07-30 14:54:56</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 52</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/8921169dca341c1">8921169dca341c1</a> Arne Teuke <i>2017-07-30 14:13:30</i>
|
||||||
|
<p>
|
||||||
|
<h3>changed ne_cmd_comment parameter</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/8583041eff9ce26">8583041eff9ce26</a> Jenkins Server <i>2017-07-30 14:13:19</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 51</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/e683f873a393b9a">e683f873a393b9a</a> Jenkins Server <i>2017-07-30 14:03:58</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 50</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/e82991f7ee64fae">e82991f7ee64fae</a> Arne Teuke <i>2017-07-30 14:03:50</i>
|
||||||
|
<p>
|
||||||
|
<h3>edited README</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/5227b44c620f33a">5227b44c620f33a</a> Arne Teuke <i>2017-07-30 14:01:52</i>
|
||||||
|
<p>
|
||||||
|
<h3>fixed permissions on command.cfg file</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/6ae7e881a960237">6ae7e881a960237</a> Arne Teuke <i>2017-07-30 12:32:50</i>
|
||||||
|
<p>
|
||||||
|
<h3>fixed permissions on command.cfg file</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/106e7b4e14b22f8">106e7b4e14b22f8</a> Arne Teuke <i>2017-07-30 12:25:04</i>
|
||||||
|
<p>
|
||||||
|
<h3>edited README</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/ae65987869f779c">ae65987869f779c</a> Arne Teuke <i>2017-07-30 12:17:19</i>
|
||||||
|
<p>
|
||||||
|
<h3>added comment option</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/c0a5382d2c4cd88">c0a5382d2c4cd88</a> Arne Teuke <i>2017-07-30 12:07:53</i>
|
||||||
|
<p>
|
||||||
|
<h3>added basic command examples</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/2e89f817d99fb64">2e89f817d99fb64</a> Jenkins Server <i>2017-07-30 12:07:49</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 43</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/5f91d2a4715fe48">5f91d2a4715fe48</a> Arne Teuke <i>2017-07-30 12:06:19</i>
|
||||||
|
<p>
|
||||||
|
<h3>added basic command examples</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/5c0374245dc1e72">5c0374245dc1e72</a> Arne Teuke <i>2017-07-30 11:50:55</i>
|
||||||
|
<p>
|
||||||
|
<h3>added test command</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/7782b870bf31b9d">7782b870bf31b9d</a> Jenkins Server <i>2017-07-30 11:50:48</i>
|
||||||
|
<p>
|
||||||
|
<h3>recommit for updates in build 42</h3>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<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>
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -19,6 +20,7 @@
|
|||||||
| | |-- cd_nrpe_3A_3Amain_3A_3Auser.html
|
| | |-- cd_nrpe_3A_3Amain_3A_3Auser.html
|
||||||
| | |-- cd_nrpe_3A_3Amainn_3A_3Auser.html
|
| | |-- cd_nrpe_3A_3Amainn_3A_3Auser.html
|
||||||
| | |-- cd_nrpe_3A_3Aparams.html
|
| | |-- cd_nrpe_3A_3Aparams.html
|
||||||
|
| | |-- cd_nrpe_3A_3Aselinux_3A_3Aconfig.html
|
||||||
| | |-- cd_nrpe_3A_3Auser.html
|
| | |-- cd_nrpe_3A_3Auser.html
|
||||||
| | `-- cd_nrpe.html
|
| | `-- cd_nrpe.html
|
||||||
| |-- puppet_defined_types
|
| |-- puppet_defined_types
|
||||||
@@ -43,13 +45,16 @@
|
|||||||
| | |-- install.pp
|
| | |-- install.pp
|
||||||
| | |-- service.pp
|
| | |-- service.pp
|
||||||
| | `-- user.pp
|
| | `-- user.pp
|
||||||
|
| |-- selinux
|
||||||
|
| | `-- config.pp
|
||||||
| |-- init.pp
|
| |-- init.pp
|
||||||
| `-- params.pp
|
| `-- params.pp
|
||||||
|-- templates
|
|-- templates
|
||||||
| |-- cmd_head.erb
|
| |-- cmd_head.erb
|
||||||
| |-- cmd_rule.erb
|
| |-- cmd_rule.erb
|
||||||
| |-- nrpe_cfg.erb
|
| |-- nrpe_cfg.erb
|
||||||
| `-- nrpe_conf.erb
|
| |-- nrpe_conf.erb
|
||||||
|
| `-- sudo_rule.erb
|
||||||
|-- tests
|
|-- tests
|
||||||
| `-- UTF_Files
|
| `-- UTF_Files
|
||||||
|-- CHANGELOG.md
|
|-- CHANGELOG.md
|
||||||
@@ -60,4 +65,4 @@
|
|||||||
|-- README.md
|
|-- README.md
|
||||||
`-- REPOSTRUCTURE.md
|
`-- REPOSTRUCTURE.md
|
||||||
|
|
||||||
11 directories, 49 files
|
12 directories, 53 files
|
||||||
|
|||||||
@@ -118,6 +118,11 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class='object_link'><a href="puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html" title="puppet_classes::cd_nrpe::selinux::config (puppet_class)">cd_nrpe::selinux::config</a></span>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -171,7 +176,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Sun Jul 30 13:41:58 2017 by
|
Generated on Sun Jul 30 19:01:55 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>
|
||||||
|
|||||||
@@ -132,9 +132,13 @@ structure (file system permissions, selinux context) through parameters
|
|||||||
manage configuration files through parameters:
|
manage configuration files through parameters:
|
||||||
* nrpe.conf
|
* nrpe.conf
|
||||||
* nrpe.cfg
|
* nrpe.cfg
|
||||||
*
|
*
|
||||||
commands.cfg (optional)
|
manage sudo role for nagios user on NRPE clients
|
||||||
* manage iptables (optionals )</p>
|
* manage dynamic NRPE
|
||||||
|
check command definitions
|
||||||
|
* manage iptables (optional)
|
||||||
|
* manage selinux
|
||||||
|
rule exceptions (optional)</p>
|
||||||
|
|
||||||
<p>SERVICE
|
<p>SERVICE
|
||||||
* manage NRPE service</p>
|
* manage NRPE service</p>
|
||||||
@@ -213,16 +217,65 @@ through this modules. Defaults to <code>true</code>.</p>
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p><code>$ne_include_selinux</code> : Whether to manage selinux exception
|
<p><code>$ne_include_selinux</code> : Whether to manage selinux exception
|
||||||
rules. Defaults to <code>true</code>.</p>
|
rules. Defaults to <code>true</code>.</p>
|
||||||
|
</li><li>
|
||||||
|
<p><code>$ne_enable_ssl</code> : Whether to allow SSL settings. See <a
|
||||||
|
href="#konwn-problems">known problems</a> for more details.</p>
|
||||||
|
</li><li>
|
||||||
|
<p><code>$ne_allow_sudo : Whether to allow the nagios / nrpe user to
|
||||||
|
use sudo by default. Controls both the
|
||||||
|
setting</code>command_prefix<code>and application of a sudo rule. Defaults
|
||||||
|
to</code>false` as it usually is not required for most of the checks.</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<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. The
|
||||||
|
default NRPE installation comes with a few examples of such commands, which
|
||||||
|
are also included in this module. However, every environment is very
|
||||||
|
different in their requirements and Nagios via Puppet is all about the
|
||||||
|
ability to dynamicically set command arguments based on default variables /
|
||||||
|
overrides. For that reason no hard-coded commands are included, but instead
|
||||||
|
all commands are set via argument strings, where possible.</p>
|
||||||
|
|
||||||
|
<p>The commands are created within /etc/nrpe.d/command.cfg , every set of
|
||||||
|
instructions creates a new line.</p>
|
||||||
|
|
||||||
|
<p>Defining commands is as simple as
|
||||||
|
that:
|
||||||
|
<code>
|
||||||
|
`cd_nrpe::commands::definitions` {
|
||||||
|
'check_users':
|
||||||
|
`ne_check_cmd` =>
|
||||||
|
'check_users',
|
||||||
|
`ne_cmd_argstring` => '-w $ARG1$ -c
|
||||||
|
$ARG2$',
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
It is very recommendable to define such
|
||||||
|
commands within Puppet modules controlling services, so any node running
|
||||||
|
the particular service will automatically get the required check commands
|
||||||
|
defined as well, while nodes not running the service also do not contain
|
||||||
|
the command check.</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
|
||||||
selinux is disabled, these contexts are ignored.</p>
|
selinux is disabled, these contexts are ignored.</p>
|
||||||
|
|
||||||
<h3 id="label-Known+Problems">Known Problems</h3>
|
<h3 id="label-Known+Problems">Known Problems</h3>
|
||||||
|
<ul><li>
|
||||||
|
<p>SSL/TLS support: Version 3 of NRPE supposedly has support for SSL/ TLs.
|
||||||
|
However, at the time of writing this module, this seems to be buggy, as I
|
||||||
|
was unable to start the NRPE service as soon as the
|
||||||
|
<code>ssl_cert_file</code> line was uncommented in teh configuration file,
|
||||||
|
despite having valid certs in the right position on the node. This happened
|
||||||
|
when installing manually, not through this Puppet module. For that reason I
|
||||||
|
included the <code>$ne_enable_ssl</code> boolean parameter, which is set to
|
||||||
|
<code>false</code> by default, hence disabling SSL/TLS options until this
|
||||||
|
has been fixed upstream, or a valid workaround has been found. Setting this
|
||||||
|
option to <code>true</code> will include all SSL / TLS settings.</p>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
<h3 id="label-Support">Support</h3>
|
<h3 id="label-Support">Support</h3>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
@@ -277,7 +330,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 19:01:57 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>
|
||||||
|
|||||||
@@ -132,9 +132,13 @@ structure (file system permissions, selinux context) through parameters
|
|||||||
manage configuration files through parameters:
|
manage configuration files through parameters:
|
||||||
* nrpe.conf
|
* nrpe.conf
|
||||||
* nrpe.cfg
|
* nrpe.cfg
|
||||||
*
|
*
|
||||||
commands.cfg (optional)
|
manage sudo role for nagios user on NRPE clients
|
||||||
* manage iptables (optionals )</p>
|
* manage dynamic NRPE
|
||||||
|
check command definitions
|
||||||
|
* manage iptables (optional)
|
||||||
|
* manage selinux
|
||||||
|
rule exceptions (optional)</p>
|
||||||
|
|
||||||
<p>SERVICE
|
<p>SERVICE
|
||||||
* manage NRPE service</p>
|
* manage NRPE service</p>
|
||||||
@@ -213,16 +217,65 @@ through this modules. Defaults to <code>true</code>.</p>
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p><code>$ne_include_selinux</code> : Whether to manage selinux exception
|
<p><code>$ne_include_selinux</code> : Whether to manage selinux exception
|
||||||
rules. Defaults to <code>true</code>.</p>
|
rules. Defaults to <code>true</code>.</p>
|
||||||
|
</li><li>
|
||||||
|
<p><code>$ne_enable_ssl</code> : Whether to allow SSL settings. See <a
|
||||||
|
href="#konwn-problems">known problems</a> for more details.</p>
|
||||||
|
</li><li>
|
||||||
|
<p><code>$ne_allow_sudo : Whether to allow the nagios / nrpe user to
|
||||||
|
use sudo by default. Controls both the
|
||||||
|
setting</code>command_prefix<code>and application of a sudo rule. Defaults
|
||||||
|
to</code>false` as it usually is not required for most of the checks.</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<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. The
|
||||||
|
default NRPE installation comes with a few examples of such commands, which
|
||||||
|
are also included in this module. However, every environment is very
|
||||||
|
different in their requirements and Nagios via Puppet is all about the
|
||||||
|
ability to dynamicically set command arguments based on default variables /
|
||||||
|
overrides. For that reason no hard-coded commands are included, but instead
|
||||||
|
all commands are set via argument strings, where possible.</p>
|
||||||
|
|
||||||
|
<p>The commands are created within /etc/nrpe.d/command.cfg , every set of
|
||||||
|
instructions creates a new line.</p>
|
||||||
|
|
||||||
|
<p>Defining commands is as simple as
|
||||||
|
that:
|
||||||
|
<code>
|
||||||
|
`cd_nrpe::commands::definitions` {
|
||||||
|
'check_users':
|
||||||
|
`ne_check_cmd` =>
|
||||||
|
'check_users',
|
||||||
|
`ne_cmd_argstring` => '-w $ARG1$ -c
|
||||||
|
$ARG2$',
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
It is very recommendable to define such
|
||||||
|
commands within Puppet modules controlling services, so any node running
|
||||||
|
the particular service will automatically get the required check commands
|
||||||
|
defined as well, while nodes not running the service also do not contain
|
||||||
|
the command check.</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
|
||||||
selinux is disabled, these contexts are ignored.</p>
|
selinux is disabled, these contexts are ignored.</p>
|
||||||
|
|
||||||
<h3 id="label-Known+Problems">Known Problems</h3>
|
<h3 id="label-Known+Problems">Known Problems</h3>
|
||||||
|
<ul><li>
|
||||||
|
<p>SSL/TLS support: Version 3 of NRPE supposedly has support for SSL/ TLs.
|
||||||
|
However, at the time of writing this module, this seems to be buggy, as I
|
||||||
|
was unable to start the NRPE service as soon as the
|
||||||
|
<code>ssl_cert_file</code> line was uncommented in teh configuration file,
|
||||||
|
despite having valid certs in the right position on the node. This happened
|
||||||
|
when installing manually, not through this Puppet module. For that reason I
|
||||||
|
included the <code>$ne_enable_ssl</code> boolean parameter, which is set to
|
||||||
|
<code>false</code> by default, hence disabling SSL/TLS options until this
|
||||||
|
has been fixed upstream, or a valid workaround has been found. Setting this
|
||||||
|
option to <code>true</code> will include all SSL / TLS settings.</p>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
<h3 id="label-Support">Support</h3>
|
<h3 id="label-Support">Support</h3>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
@@ -277,7 +330,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 19:01:56 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>
|
||||||
|
|||||||
@@ -110,6 +110,13 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="object_puppet_classes::cd_nrpe::selinux::config" class="odd">
|
||||||
|
<div class="item">
|
||||||
|
<span class='object_link'><a href="puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html" title="puppet_classes::cd_nrpe::selinux::config (puppet_class)">cd_nrpe::selinux::config</a></span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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 19:01:57 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>
|
||||||
|
|||||||
@@ -120,6 +120,18 @@ 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 { 'check_users':
|
||||||
|
ne_check_cmd => 'check_users',
|
||||||
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||||
|
ne_cmd_comment => 'check the amount of user logged in locally',
|
||||||
|
}</code></pre>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div><div class="method_details_list">
|
</div><div class="method_details_list">
|
||||||
<table class="source_code">
|
<table class="source_code">
|
||||||
@@ -128,12 +140,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
|
|
||||||
29
|
29
|
||||||
30
|
30
|
||||||
31
|
31
|
||||||
@@ -161,10 +167,40 @@ 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
|
||||||
|
67
|
||||||
|
68
|
||||||
|
69
|
||||||
|
70
|
||||||
|
71
|
||||||
|
72
|
||||||
|
73
|
||||||
|
74
|
||||||
|
75
|
||||||
|
76
|
||||||
|
77
|
||||||
|
78
|
||||||
|
79
|
||||||
|
80
|
||||||
|
81
|
||||||
|
82
|
||||||
|
83
|
||||||
|
84
|
||||||
|
85
|
||||||
|
86</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 29</span>
|
||||||
|
|
||||||
class cd_nrpe::commands::definition_rules (
|
class cd_nrpe::commands::definition_rules (
|
||||||
|
|
||||||
@@ -177,8 +213,8 @@ class cd_nrpe::commands::definition_rules (
|
|||||||
concat { $ne_cmd_file:
|
concat { $ne_cmd_file:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
path => $ne_cmd_file,
|
path => $ne_cmd_file,
|
||||||
owner => 'root',
|
owner => $ne_user,
|
||||||
group => 'root',
|
group => $ne_user,
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
@@ -197,7 +233,31 @@ 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$',
|
||||||
|
ne_cmd_comment => 'check the amount of user logged in locally',
|
||||||
|
}
|
||||||
|
|
||||||
|
cd_nrpe::commands::definitions { 'check_load':
|
||||||
|
ne_check_cmd => 'check_load',
|
||||||
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||||
|
}
|
||||||
|
|
||||||
|
cd_nrpe::commands::definitions { 'check_disk':
|
||||||
|
ne_check_cmd => 'check_disk',
|
||||||
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$ -p $ARG3$',
|
||||||
|
}
|
||||||
|
|
||||||
|
cd_nrpe::commands::definitions { 'check_procs':
|
||||||
|
ne_check_cmd => 'check_procs',
|
||||||
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$ -s $ARG3$',
|
||||||
|
}
|
||||||
|
|
||||||
|
cd_nrpe::commands::definitions { 'check_swap':
|
||||||
|
ne_check_cmd => 'check_swap',
|
||||||
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
@@ -207,7 +267,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 19:01:58 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>
|
||||||
|
|||||||
@@ -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 19:01:58 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>
|
||||||
|
|||||||
@@ -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 19:01:58 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>
|
||||||
|
|||||||
@@ -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 19:01:58 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>
|
||||||
|
|||||||
@@ -166,7 +166,22 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
|||||||
58
|
58
|
||||||
59
|
59
|
||||||
60
|
60
|
||||||
61</pre>
|
61
|
||||||
|
62
|
||||||
|
63
|
||||||
|
64
|
||||||
|
65
|
||||||
|
66
|
||||||
|
67
|
||||||
|
68
|
||||||
|
69
|
||||||
|
70
|
||||||
|
71
|
||||||
|
72
|
||||||
|
73
|
||||||
|
74
|
||||||
|
75
|
||||||
|
76</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 23</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 23</span>
|
||||||
@@ -209,6 +224,21 @@ class cd_nrpe::main::files (
|
|||||||
notify => Service[$ne_service],
|
notify => Service[$ne_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $ne_allow_sudo == true {
|
||||||
|
|
||||||
|
file { $ne_sudo_file:
|
||||||
|
ensure => file,
|
||||||
|
path => $ne_sudo_file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0440',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($ne_sudo_rule_erb),
|
||||||
|
}
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -217,7 +247,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 19:01:58 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>
|
||||||
|
|||||||
@@ -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 19:01:58 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>
|
||||||
|
|||||||
@@ -149,7 +149,11 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
|||||||
41
|
41
|
||||||
42
|
42
|
||||||
43
|
43
|
||||||
44</pre>
|
44
|
||||||
|
45
|
||||||
|
46
|
||||||
|
47
|
||||||
|
48</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 23</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 23</span>
|
||||||
@@ -168,6 +172,10 @@ class cd_nrpe::main::service (
|
|||||||
require cd_nrpe::commands::definition_rules
|
require cd_nrpe::commands::definition_rules
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $ne_include_selinux == true {
|
||||||
|
require cd_nrpe::selinux::config
|
||||||
|
}
|
||||||
|
|
||||||
service { $ne_service:
|
service { $ne_service:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
@@ -183,7 +191,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 19:01:58 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>
|
||||||
|
|||||||
@@ -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 19:01:58 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>
|
||||||
|
|||||||
@@ -79,6 +79,8 @@
|
|||||||
|
|
||||||
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Aservice.html" title="puppet_classes::cd_nrpe::main::service (puppet_class)">cd_nrpe::main::service</a></span><br/>
|
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Aservice.html" title="puppet_classes::cd_nrpe::main::service (puppet_class)">cd_nrpe::main::service</a></span><br/>
|
||||||
|
|
||||||
|
<span class='object_link'><a href="cd_nrpe_3A_3Aselinux_3A_3Aconfig.html" title="puppet_classes::cd_nrpe::selinux::config (puppet_class)">cd_nrpe::selinux::config</a></span><br/>
|
||||||
|
|
||||||
<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_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_3Adefinition_rules.html" title="puppet_classes::cd_nrpe::commands::definition_rules (puppet_class)">cd_nrpe::commands::definition_rules</a></span><br/>
|
<span class='object_link'><a href="cd_nrpe_3A_3Acommands_3A_3Adefinition_rules.html" title="puppet_classes::cd_nrpe::commands::definition_rules (puppet_class)">cd_nrpe::commands::definition_rules</a></span><br/>
|
||||||
@@ -494,7 +496,7 @@ changed in a later version of NRPE.</p>
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>path and name of the ssl certificate
|
<p>path and name of the ssl certificate
|
||||||
authority ( ca) file / chain. must be
|
authority (ca) file / chain. must be
|
||||||
full path.</p>
|
full path.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -966,7 +968,10 @@ checks, to allow dynamic check
|
|||||||
178
|
178
|
||||||
179
|
179
|
||||||
180
|
180
|
||||||
181</pre>
|
181
|
||||||
|
182
|
||||||
|
183
|
||||||
|
184</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 101</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 101</span>
|
||||||
@@ -977,7 +982,7 @@ $pkg_ensure = 'latest',
|
|||||||
|
|
||||||
$ne_manage_cmds = true,
|
$ne_manage_cmds = true,
|
||||||
|
|
||||||
# user settings
|
# NRPE user settings
|
||||||
$ne_user = 'nrpe',
|
$ne_user = 'nrpe',
|
||||||
$ne_user_comment = 'NRPE service user',
|
$ne_user_comment = 'NRPE service user',
|
||||||
$ne_user_uid = '1005',
|
$ne_user_uid = '1005',
|
||||||
@@ -985,6 +990,7 @@ $ne_user_home = '/var/run/nrpe',
|
|||||||
$ne_user_groups = undef,
|
$ne_user_groups = undef,
|
||||||
$ne_user_shell = '/sbin/nologin',
|
$ne_user_shell = '/sbin/nologin',
|
||||||
|
|
||||||
|
|
||||||
# nrpe.cfg
|
# nrpe.cfg
|
||||||
$ne_log_facility = 'daemon',
|
$ne_log_facility = 'daemon',
|
||||||
$ne_log_file = '',
|
$ne_log_file = '',
|
||||||
@@ -1046,6 +1052,8 @@ $ne_nrpe_conf_erb = 'cd_nrpe/nrpe_conf.erb'
|
|||||||
$ne_cmd_file = "${ne_main_conf_d_dir}/commands.cfg"
|
$ne_cmd_file = "${ne_main_conf_d_dir}/commands.cfg"
|
||||||
$ne_cmd_head_erb = 'cd_nrpe/cmd_head.erb'
|
$ne_cmd_head_erb = 'cd_nrpe/cmd_head.erb'
|
||||||
$ne_cmd_rule_erb = 'cd_nrpe/cmd_rule.erb'
|
$ne_cmd_rule_erb = 'cd_nrpe/cmd_rule.erb'
|
||||||
|
$ne_sudo_file = '/etc/sudoers.d/nagios_sudo'
|
||||||
|
$ne_sudo_rule_erb = 'cd_nrpe/sudo_rule.erb'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|
||||||
@@ -1059,7 +1067,7 @@ $ne_cmd_rule_erb = 'cd_nrpe/cmd_rule.erb'
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
Generated on Sun Jul 30 13:42:00 2017 by
|
Generated on Sun Jul 30 19:01:58 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>
|
||||||
|
|||||||
180
doc/puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html
Normal file
180
doc/puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>
|
||||||
|
Puppet Class: cd_nrpe::selinux::config
|
||||||
|
|
||||||
|
— 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::selinux::config";
|
||||||
|
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::selinux::config</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::selinux::config</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/selinux/config.pp
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Summary</h2>
|
||||||
|
Class manages all aspects of configuring selinux for NRPE.
|
||||||
|
|
||||||
|
<h2>Overview</h2>
|
||||||
|
<div class="docstring">
|
||||||
|
<div class="discussion">
|
||||||
|
|
||||||
|
<p>cd_nrpe::selinux::config.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">
|
||||||
|
|
||||||
|
|
||||||
|
22
|
||||||
|
23
|
||||||
|
24
|
||||||
|
25
|
||||||
|
26
|
||||||
|
27
|
||||||
|
28
|
||||||
|
29
|
||||||
|
30
|
||||||
|
31
|
||||||
|
32
|
||||||
|
33
|
||||||
|
34
|
||||||
|
35
|
||||||
|
36
|
||||||
|
37</pre>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<pre class="code"><span class="info file"># File 'manifests/selinux/config.pp', line 22</span>
|
||||||
|
|
||||||
|
class cd_nrpe::selinux::config (
|
||||||
|
|
||||||
|
) inherits cd_nrpe::params {
|
||||||
|
|
||||||
|
if $ne_include_selinux == true {
|
||||||
|
|
||||||
|
# manage allow nagios sudo
|
||||||
|
|
||||||
|
exec { 'nagios_run_sudo':
|
||||||
|
command => 'setsebool -P nagios_run_sudo 1',
|
||||||
|
path => ['/usr/bin','/usr/sbin'],
|
||||||
|
cwd => '/tmp',
|
||||||
|
unless => 'getsebool nagios_run_sudo | awk \'{print$3}\' | grep -ic "on"'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}</pre>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="footer">
|
||||||
|
Generated on Sun Jul 30 19:01:58 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>
|
||||||
@@ -173,6 +173,25 @@ the custom location
|
|||||||
, i.e. -w $ARG1$ -c
|
, i.e. -w $ARG1$ -c
|
||||||
$ARG2$. See the arguments in th eman pages for the
|
$ARG2$. See the arguments in th eman pages for the
|
||||||
checks.</p>
|
checks.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ne_cmd_comment</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>string</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>Specify an optional comment for your command
|
||||||
|
definition</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -187,8 +206,6 @@ checks.</p>
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
31
|
|
||||||
32
|
|
||||||
33
|
33
|
||||||
34
|
34
|
||||||
35
|
35
|
||||||
@@ -206,16 +223,20 @@ checks.</p>
|
|||||||
47
|
47
|
||||||
48
|
48
|
||||||
49
|
49
|
||||||
50</pre>
|
50
|
||||||
|
51
|
||||||
|
52
|
||||||
|
53</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/commands/definitions.pp', line 31</span>
|
<pre class="code"><span class="info file"># File 'manifests/commands/definitions.pp', line 33</span>
|
||||||
|
|
||||||
define cd_nrpe::commands::definitions (
|
define cd_nrpe::commands::definitions (
|
||||||
|
|
||||||
$ne_check_cmd = undef,
|
$ne_check_cmd = undef,
|
||||||
$ne_cmd_path = '/usr/lib64/nagios/plugins/',
|
$ne_cmd_path = '/usr/lib64/nagios/plugins/',
|
||||||
$ne_cmd_argstring = undef,
|
$ne_cmd_argstring = undef,
|
||||||
|
$ne_cmd_comment = '',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@@ -238,7 +259,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 19:01:59 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>
|
||||||
|
|||||||
@@ -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 19:01:57 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user