Files
confdroid_nrpe/doc/puppet_classes/cd_nrpe_3A_3Aparams.html

1040 lines
24 KiB
HTML
Raw Normal View History

2017-07-28 15:36:18 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: cd_nrpe::params
2018-12-07 18:19:09 +01:00
&mdash; Documentation by YARD 0.9.16
2017-07-28 15:36:18 +02:00
</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::params";
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> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">cd_nrpe::params</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::params</h1>
<div class="box_info">
<dl>
<dt>Inherited by:</dt>
<dd>
2017-07-28 17:58:08 +02:00
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_nrpe::main::dirs (puppet_class)">cd_nrpe::main::dirs</a></span><br/>
2019-04-23 20:24:43 +02:00
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Aexec.html" title="puppet_classes::cd_nrpe::main::exec (puppet_class)">cd_nrpe::main::exec</a></span><br/>
2017-07-28 15:42:40 +02:00
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Auser.html" title="puppet_classes::cd_nrpe::main::user (puppet_class)">cd_nrpe::main::user</a></span><br/>
2017-07-28 15:36:18 +02:00
2017-07-28 17:58:08 +02:00
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Afiles.html" title="puppet_classes::cd_nrpe::main::files (puppet_class)">cd_nrpe::main::files</a></span><br/>
2017-07-28 15:36:18 +02:00
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_nrpe::main::config (puppet_class)">cd_nrpe::main::config</a></span><br/>
<span class='object_link'><a href="cd_nrpe_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_nrpe::main::install (puppet_class)">cd_nrpe::main::install</a></span><br/>
2017-07-28 17:58:08 +02:00
<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/>
2017-07-30 18:58:35 +02:00
<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/>
2017-07-28 17:58:08 +02:00
<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/>
2017-07-30 13:42:02 +02:00
<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/>
2017-07-30 13:32:22 +02:00
2017-07-28 15:36:18 +02:00
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/params.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class holds all parameters for the cd_nrpe module and is
inherited by all classes except defines.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
2018-12-07 18:19:09 +01:00
<p>cd_nrpe::params.pp Module name: cd_nrpe Author: Arne Teuke
2017-07-28 15:36:18 +02:00
(arne_teuke@ConfDroid.com)</p>
2018-12-07 18:19:09 +01:00
<h1 id="label-License-3A">License:</h1>
2017-07-28 15:36:18 +02:00
<p>This file is part of cd_nrpe.</p>
2018-12-07 18:19:09 +01:00
<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>
2017-07-28 15:36:18 +02:00
2018-12-07 18:19:09 +01:00
<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
2017-07-28 15:36:18 +02:00
for more details.</p>
2018-12-07 18:19:09 +01:00
<p>You should have received a copy of the GNU General Public License along
2017-07-28 15:36:18 +02:00
with this program. If not, see <a
2018-12-07 18:19:09 +01:00
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/. be passed to
2017-07-28 19:19:39 +02:00
the NRPE daemon.</p>
2017-07-28 15:36:18 +02:00
</div>
</div>
2018-12-07 18:19:09 +01:00
2017-07-28 15:36:18 +02:00
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>pkg_ensure</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;latest&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>which <a href="https://confdroid.com/2017/05/puppet-type-package/">package
2018-12-07 18:19:09 +01:00
type</a> to choose, i.e. <code>latest</code> or <code>present</code>.</p>
2017-07-28 15:36:18 +02:00
</div>
</li>
2017-07-28 17:58:08 +02:00
<li>
<span class='name'>ne_log_facility</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;daemon&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the log facility to use.</p>
</div>
</li>
<li>
<span class='name'>ne_log_file</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>If a log file is specified in this option, nrpe will write to that file
2017-07-28 17:58:08 +02:00
instead of using syslog. i.e. /var/run/nrpe.log</p>
</div>
</li>
<li>
<span class='name'>ne_debug</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>Whether debugging messages are logged to the syslog facility.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_nrpe_port</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;5666&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>the NRPE port. used in firewall ( optional) and configuration file.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_listen_queue_size</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;5&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>Listen queue size (backlog) for serving incoming connections.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_nagios_server</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>$::nagios_server</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>ipaddress of the nagios server to be allowed to connect to NRPE service.
Default is to look up a global parameter from ENC.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_dont_blame_nrpe</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>whether or not the NRPE daemon will allow clients to specify arguments to
2017-07-28 17:58:08 +02:00
commands that are executed.</p>
</div>
</li>
<li>
<span class='name'>ne_allow_bash_cmd_subst</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>whether or not the NRPE daemon will allow clients to specify arguments that
contain bash command substitutions of the form $(…).</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_allow_sudo</span>
<span class='type'>(<tt>boolean</tt>)</span>
2017-07-30 19:02:01 +02:00
<em class="default">(defaults to: <tt>true</tt>)</em>
2017-07-28 17:58:08 +02:00
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>Whether to allow sudo access. used in nrpe.cfg as well as for creating a
2017-07-28 17:58:08 +02:00
sudo role.</p>
</div>
</li>
<li>
2017-07-28 19:06:32 +02:00
<span class='name'>ne_command_prefix</span>
2017-07-28 17:58:08 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 19:06:32 +02:00
<em class="default">(defaults to: <tt>&#39;/usr/bin/sudo&#39;</tt>)</em>
2017-07-28 17:58:08 +02:00
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>allows you to prefix all commands with a user-defined string.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_incl_fw</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include firewall rules</p>
</div>
</li>
<li>
<span class='name'>ne_command_timeout</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;60&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>maximum number of seconds that the NRPE daemon will allow plugins to finish
2017-07-28 17:58:08 +02:00
executing before killing them off.</p>
</div>
</li>
<li>
<span class='name'>ne_connection_timeout</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;300&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>maximum number of seconds that the NRPE daemon will wait for a connection
2017-07-28 17:58:08 +02:00
to be established before exiting.</p>
</div>
</li>
<li>
<span class='name'>ne_ssl_version</span>
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 20:26:20 +02:00
<em class="default">(defaults to: <tt>&#39;TLSv2+&#39;</tt>)</em>
2017-07-28 17:58:08 +02:00
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>These directives allow you to specify how to use SSL/TLS.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_ssl_use_adh</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>This is for backward compatibility and is DEPRECATED. Set to 1 to enable
ADH or 2 to require ADH. 1 is currently the default but will be changed in
2017-07-28 17:58:08 +02:00
a later version.</p>
</div>
</li>
<li>
<span class='name'>ne_ssl_cipher_list</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!RC4:!MD5:@STRENGTH&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>ciphers can be used. For backward compatibility, this defaults to
&#39;ssl_cipher_list=ALL:!MD5:@STRENGTH&#39; in this version but will be
2017-07-28 17:58:08 +02:00
changed in a later version of NRPE.</p>
</div>
</li>
<li>
<span class='name'>ne_ssl_cacert_file</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;/etc/pki/tls/certs/ca-chain.crt.pem&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>path and name of the ssl certificate authority (ca) file / chain. must be
2017-07-28 17:58:08 +02:00
full path.</p>
</div>
</li>
<li>
<span class='name'>ne_ssl_cert_file</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&quot;/etc/pki/tls/certs/${::fqdn}.crt.pem&quot;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>path and name of the server ssl certificate. must include full path.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
2017-07-28 19:06:32 +02:00
<span class='name'>ne_ssl_privatekey_file</span>
2017-07-28 17:58:08 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 19:06:32 +02:00
<em class="default">(defaults to: <tt>&quot;/etc/pki/tls/private/${::fqdn}.key.pem&quot;</tt>)</em>
2017-07-28 17:58:08 +02:00
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>path and name of the server ssl private key. Must include full path.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_ssl_client_certs</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;2&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>determines client certificate usage. Values: 0 = Don&#39;t ask for or
require client certificates 1 = Ask for client certificates 2 = Require
2017-07-28 17:58:08 +02:00
client certificates</p>
</div>
</li>
<li>
<span class='name'>ne_ssl_logging</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0x00&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>determines which SSL messages are send to syslog. OR values together to
specify multiple options. Values: 0x00 (0) = No additional logging
(default) 0x01 (1) = Log startup SSL/TLS parameters 0x02 (2) = Log remote
IP address 0x04 (4) = Log SSL/TLS version of connections 0x08 (8) = Log
which cipher is being used for the connection 0x10 (16) = Log if client has
a certificate 0x20 (32) = Log details of client&#39;s certificate if it has
one -1 or 0xff or 0x2f = All of the above</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_nasty_metachars</span>
2017-07-30 20:06:28 +02:00
<span class='type'>(<tt>array</tt>)</span>
2017-07-28 17:58:08 +02:00
2017-07-30 20:25:15 +02:00
<em class="default">(defaults to: <tt>[&quot;|`&amp;&gt;&lt;&#39;\\[]{};\r\n&quot;]</tt>)</em>
2017-07-28 17:58:08 +02:00
&mdash;
<div class='inline'>
<p>list of characters that cannot</p>
</div>
</li>
<li>
<span class='name'>ne_include_file</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>include definitions from an external config file.</p>
2017-07-28 17:58:08 +02:00
</div>
</li>
<li>
<span class='name'>ne_fw_order_no</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;50&#39;</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>ordering prefix for he firewall rules. Adjust to your environment if
2017-07-28 17:58:08 +02:00
needed.</p>
</div>
</li>
2017-07-28 18:41:56 +02:00
<li>
<span class='name'>ne_ssl_opts</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify additional SSL options.</p>
</div>
</li>
2017-07-28 15:36:18 +02:00
<li>
<span class='name'>ne_user</span>
2017-07-28 19:06:32 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 15:36:18 +02:00
<em class="default">(defaults to: <tt>&#39;nrpe&#39;</tt>)</em>
2017-07-28 19:06:32 +02:00
&mdash;
<div class='inline'>
<p>the NRPE service user</p>
</div>
2017-07-28 15:36:18 +02:00
</li>
<li>
<span class='name'>ne_user_comment</span>
2017-07-28 19:06:32 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 15:36:18 +02:00
<em class="default">(defaults to: <tt>&#39;NRPE service user&#39;</tt>)</em>
2017-07-28 19:06:32 +02:00
&mdash;
<div class='inline'>
<p>The comment for the service user /etc/passwd</p>
</div>
2017-07-28 15:36:18 +02:00
</li>
<li>
<span class='name'>ne_user_uid</span>
2017-07-28 19:06:32 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 15:36:18 +02:00
<em class="default">(defaults to: <tt>&#39;1005&#39;</tt>)</em>
2017-07-28 19:06:32 +02:00
&mdash;
<div class='inline'>
<p>the UID for the service user</p>
</div>
2017-07-28 15:36:18 +02:00
</li>
<li>
2017-07-28 19:19:39 +02:00
<span class='name'>ne_user_home</span>
2017-07-28 15:36:18 +02:00
2017-07-28 19:06:32 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 15:36:18 +02:00
2017-07-28 19:19:39 +02:00
<em class="default">(defaults to: <tt>&#39;/var/run/nrpe&#39;</tt>)</em>
2017-07-28 19:06:32 +02:00
2017-07-28 15:36:18 +02:00
2017-07-28 19:06:32 +02:00
&mdash;
<div class='inline'>
2017-07-28 19:19:39 +02:00
<p>the home for the service user</p>
2017-07-28 19:06:32 +02:00
</div>
2017-07-28 15:36:18 +02:00
</li>
<li>
2017-07-28 19:19:39 +02:00
<span class='name'>ne_user_shell</span>
2017-07-28 15:36:18 +02:00
2017-07-28 19:19:39 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 15:36:18 +02:00
2017-07-28 19:19:39 +02:00
<em class="default">(defaults to: <tt>&#39;/sbin/nologin&#39;</tt>)</em>
2017-07-28 15:36:18 +02:00
2017-07-28 19:19:39 +02:00
&mdash;
<div class='inline'>
<p>the shell for the service user.</p>
</div>
2017-07-28 15:36:18 +02:00
</li>
<li>
2017-07-28 19:06:32 +02:00
<span class='name'>ne_user_groups</span>
2017-07-28 15:36:18 +02:00
2017-07-28 19:19:39 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 15:36:18 +02:00
2017-07-28 19:06:32 +02:00
<em class="default">(defaults to: <tt>undef</tt>)</em>
2017-07-28 15:36:18 +02:00
2017-07-28 19:19:39 +02:00
&mdash;
<div class='inline'>
<p>additional groups for the service user.</p>
</div>
2017-07-28 15:36:18 +02:00
</li>
2017-07-28 17:58:08 +02:00
<li>
<span class='name'>ne_server_address</span>
2017-07-28 19:19:39 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 17:58:08 +02:00
2017-07-28 20:48:58 +02:00
<em class="default">(defaults to: <tt>&#39;0.0.0.0&#39;</tt>)</em>
2017-07-28 17:58:08 +02:00
2017-07-28 19:19:39 +02:00
&mdash;
<div class='inline'>
<p>the network interfaces to listen on</p>
</div>
2017-07-28 17:58:08 +02:00
</li>
<li>
<span class='name'>ne_allow_weak_rnd_seed</span>
2017-07-28 19:19:39 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 17:58:08 +02:00
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
2017-07-28 19:19:39 +02:00
&mdash;
<div class='inline'>
<p>Whether to allow weak random seeds</p>
</div>
2017-07-28 17:58:08 +02:00
</li>
<li>
<span class='name'>ne_include_selinux</span>
2017-07-28 19:19:39 +02:00
<span class='type'>(<tt>string</tt>)</span>
2017-07-28 17:58:08 +02:00
<em class="default">(defaults to: <tt>true</tt>)</em>
2017-07-28 19:19:39 +02:00
&mdash;
<div class='inline'>
<p>Whether to manage selinux</p>
2017-07-28 20:26:20 +02:00
</div>
</li>
<li>
<span class='name'>ne_enable_ssl</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to enable SSL certificates.</p>
2017-07-30 13:32:22 +02:00
</div>
</li>
<li>
<span class='name'>ne_manage_cmds</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
2018-12-07 18:19:09 +01:00
<p>Whether to manage command rules for NRPE checks, to allow dynamic check
2017-07-30 13:32:22 +02:00
&amp; command rules.</p>
2017-07-28 19:19:39 +02:00
</div>
2017-07-28 17:58:08 +02:00
</li>
2017-07-28 15:36:18 +02:00
</ul>
2017-07-28 18:41:56 +02:00
<p class="tag_title">See Also:</p>
<ul class="see">
<li><a href="https://www.nagios.org/documentation/" target="_parent" title="https://www.nagios.org/documentation/">https://www.nagios.org/documentation/</a></li>
</ul>
2017-07-28 15:36:18 +02:00
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
2017-07-28 17:58:08 +02:00
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
2017-07-28 18:41:56 +02:00
157
158
159
160
161
2017-07-28 18:54:36 +02:00
162
163
2017-07-28 19:06:32 +02:00
164
165
166
167
2017-07-28 19:19:39 +02:00
168
169
170
171
2017-07-28 20:26:20 +02:00
172
173
2017-07-30 13:32:22 +02:00
174
175
176
177
178
179
180
2017-07-30 16:03:58 +02:00
181
182
183
2019-04-23 20:24:43 +02:00
184
185
2019-04-23 20:41:23 +02:00
186
187
188
189</pre>
2017-07-28 15:36:18 +02:00
</td>
<td>
2017-07-30 13:32:22 +02:00
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 101</span>
2017-07-28 15:36:18 +02:00
class cd_nrpe::params (
$pkg_ensure = &#39;latest&#39;,
2017-07-30 13:32:22 +02:00
$ne_manage_cmds = true,
2017-07-30 16:03:58 +02:00
# NRPE user settings
2017-07-28 15:36:18 +02:00
$ne_user = &#39;nrpe&#39;,
$ne_user_comment = &#39;NRPE service user&#39;,
$ne_user_uid = &#39;1005&#39;,
2017-07-28 17:58:08 +02:00
$ne_user_home = &#39;/var/run/nrpe&#39;,
2017-07-28 15:36:18 +02:00
$ne_user_groups = undef,
$ne_user_shell = &#39;/sbin/nologin&#39;,
2017-07-30 16:03:58 +02:00
2017-07-28 17:58:08 +02:00
# nrpe.cfg
$ne_log_facility = &#39;daemon&#39;,
$ne_log_file = &#39;&#39;,
$ne_debug = &#39;0&#39;,
$ne_nrpe_port = &#39;5666&#39;,
2017-07-28 20:48:58 +02:00
$ne_server_address = &#39;0.0.0.0&#39;,
2017-07-28 17:58:08 +02:00
$ne_listen_queue_size = &#39;5&#39;,
$ne_nagios_server = $::nagios_server,
$ne_dont_blame_nrpe = &#39;1&#39;,
$ne_allow_bash_cmd_subst = &#39;1&#39;,
2017-07-30 19:02:01 +02:00
$ne_allow_sudo = true,
2017-07-28 17:58:08 +02:00
$ne_command_prefix = &#39;/usr/bin/sudo&#39;,
$ne_command_timeout = &#39;60&#39;,
$ne_connection_timeout = &#39;300&#39;,
$ne_allow_weak_rnd_seed = &#39;1&#39;,
2017-07-28 20:26:20 +02:00
$ne_enable_ssl = false,
$ne_ssl_version = &#39;TLSv2+&#39;,
2017-07-28 17:58:08 +02:00
$ne_ssl_use_adh = &#39;1&#39;,
$ne_ssl_cipher_list = &#39;ALL:!aNULL:!eNULL:!SSLv2:!LOW:!EXP:!RC4:!MD5:@STRENGTH&#39;,
$ne_ssl_cacert_file = &#39;/etc/pki/tls/certs/ca-chain.crt.pem&#39;,
$ne_ssl_cert_file = &quot;/etc/pki/tls/certs/${::fqdn}.crt.pem&quot;,
$ne_ssl_privatekey_file = &quot;/etc/pki/tls/private/${::fqdn}.key.pem&quot;,
$ne_ssl_client_certs = &#39;2&#39;,
$ne_ssl_logging = &#39;0x00&#39;,
2017-07-30 20:25:15 +02:00
$ne_nasty_metachars = [&quot;|`&amp;&gt;&lt;&#39;\\[]{};\r\n&quot;],
2017-07-28 17:58:08 +02:00
$ne_include_file = &#39;&#39;,
2017-07-28 18:41:56 +02:00
# nrpe.conf
$ne_ssl_opts = &#39;&#39;,
2017-07-28 17:58:08 +02:00
# firewall
$ne_incl_fw = true,
$ne_fw_order_no = &#39;50&#39;,
# selinux
$ne_include_selinux = true,
2017-07-28 15:36:18 +02:00
) {
# installation section
$reqpackages = $::operatingsystem ? {
2017-07-28 18:31:45 +02:00
/(?i-mx:centos|fedora|redhat)/ =&gt; [&#39;nrpe&#39;,&#39;nrpe-selinux&#39;],
2017-07-28 15:36:18 +02:00
}
2017-07-28 17:58:08 +02:00
# service
$ne_service = &#39;nrpe&#39;
# directories
$ne_main_conf_d_dir = &#39;/etc/nrpe.d&#39;
$ne_run_dir = &#39;/var/run/nrpe&#39;
# files
$ne_main_conf_file = &#39;/etc/nagios/nrpe.cfg&#39;
2017-07-28 18:54:36 +02:00
$ne_main_conf_erb = &#39;cd_nrpe/nrpe_cfg.erb&#39;
2017-07-28 17:58:08 +02:00
$ne_nrpe_pid_file = &quot;${ne_run_dir}/nrpe.pid&quot;
2017-07-28 18:54:36 +02:00
$ne_nrpe_conf_file = &#39;/etc/sysconfig/nrpe&#39;
$ne_nrpe_conf_erb = &#39;cd_nrpe/nrpe_conf.erb&#39;
2017-07-30 13:32:22 +02:00
$ne_cmd_file = &quot;${ne_main_conf_d_dir}/commands.cfg&quot;
$ne_cmd_head_erb = &#39;cd_nrpe/cmd_head.erb&#39;
$ne_cmd_rule_erb = &#39;cd_nrpe/cmd_rule.erb&#39;
2017-07-30 16:03:58 +02:00
$ne_sudo_file = &#39;/etc/sudoers.d/nagios_sudo&#39;
$ne_sudo_rule_erb = &#39;cd_nrpe/sudo_rule.erb&#39;
2019-04-23 20:41:23 +02:00
$ne_nrpe_te_file = &quot;${ne_main_conf_d_dir}/nrpe.te&quot;
2019-04-23 20:24:43 +02:00
$ne_nrpe_te_erb = &#39;cd_nrpe/nrpe.te.erb&#39;
2019-04-23 20:41:23 +02:00
$ne_nrpe_mod_file = &quot;${ne_main_conf_d_dir}/nrpe.mod&quot;
$ne_checkmodule_nrpe_erb = &#39;cd_nrpe/checkmodule_nrpe.erb&#39;
$ne_nrpe_pp_file = &quot;${ne_main_conf_d_dir}/nrpe.pp&quot;
2017-07-28 17:58:08 +02:00
2017-07-28 15:36:18 +02:00
# includes must be last
include cd_nrpe::main::config
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
2018-04-12 12:52:18 +02:00
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
2017-07-28 15:36:18 +02:00
</div>
</div>
</body>
</html>