Recommit for updates in build 11
This commit is contained in:
@@ -121,7 +121,7 @@
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p>manage dynamic NRPE check command definitions</p>
|
<p>manage dynamic NRPE check command definitions</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage iptables (optional). set <code>ne_incl_fw</code>to <code>true</code>. Specify a custom value to <code>ne_nagios_source</code> for the nagior server IP or range.</p>
|
<p>manage iptables (optional). set <code>ne_incl_fw</code>to <code>true</code>.</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage selinux rule exceptions (optional)</p>
|
<p>manage selinux rule exceptions (optional)</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Note: The value for the <code>nagios_server</code> variable is derived from a global paraneter set in Foreman (<code>nagios_server</code>), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”.</p>
|
<p>Note: The value for the <code>nagios_server</code> variable is derived from a global paraneter set in Foreman (<code>nagios_server</code>), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”. Same for <code>nagios_source</code>, the value for the firewall source.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p>manage dynamic NRPE check command definitions</p>
|
<p>manage dynamic NRPE check command definitions</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage iptables (optional). set <code>ne_incl_fw</code>to <code>true</code>. Specify a custom value to <code>ne_nagios_source</code> for the nagior server IP or range.</p>
|
<p>manage iptables (optional). set <code>ne_incl_fw</code>to <code>true</code>.</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage selinux rule exceptions (optional)</p>
|
<p>manage selinux rule exceptions (optional)</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Note: The value for the <code>nagios_server</code> variable is derived from a global paraneter set in Foreman (<code>nagios_server</code>), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”.</p>
|
<p>Note: The value for the <code>nagios_server</code> variable is derived from a global paraneter set in Foreman (<code>nagios_server</code>), because the paremeter is used across multiple modules. You need to set that manually in Foreman under “Global Parameters”. Same for <code>nagios_source</code>, the value for the firewall source.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ class confdroid_nrpe::firewall::iptables (
|
|||||||
) inherits confdroid_nrpe::params {
|
) inherits confdroid_nrpe::params {
|
||||||
if $ne_incl_fw == true {
|
if $ne_incl_fw == true {
|
||||||
firewall { "${ne_fw_order_no}${ne_nrpe_port} port ${ne_nrpe_port}":
|
firewall { "${ne_fw_order_no}${ne_nrpe_port} port ${ne_nrpe_port}":
|
||||||
source => $ne_nagios_source,
|
source => $nagios_source,
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
dport => $ne_nrpe_port,
|
dport => $ne_nrpe_port,
|
||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
|
|||||||
@@ -741,24 +741,6 @@ inherited by all classes except defines.
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>Whether to manage command rules for NRPE checks, to allow dynamic check & command rules.</p>
|
<p>Whether to manage command rules for NRPE checks, to allow dynamic check & command rules.</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>ne_nagios_source</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'0.0.0.0/0'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>the source address for the firewall rule. Adjust to your environment if needed. Default is ‘0.0.0.0/0’ to allow all sources, but it is recommended to specify the nagios server IP or subnet.</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -781,6 +763,9 @@ inherited by all classes except defines.
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
78
|
||||||
|
79
|
||||||
|
80
|
||||||
81
|
81
|
||||||
82
|
82
|
||||||
83
|
83
|
||||||
@@ -865,13 +850,10 @@ inherited by all classes except defines.
|
|||||||
162
|
162
|
||||||
163
|
163
|
||||||
164
|
164
|
||||||
165
|
165</pre>
|
||||||
166
|
|
||||||
167
|
|
||||||
168</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 81</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 78</span>
|
||||||
|
|
||||||
class confdroid_nrpe::params (
|
class confdroid_nrpe::params (
|
||||||
|
|
||||||
@@ -918,7 +900,6 @@ class confdroid_nrpe::params (
|
|||||||
# firewall
|
# firewall
|
||||||
Boolean $ne_incl_fw = true,
|
Boolean $ne_incl_fw = true,
|
||||||
String $ne_fw_order_no = '50',
|
String $ne_fw_order_no = '50',
|
||||||
String $ne_nagios_source = '0.0.0.0/0',
|
|
||||||
|
|
||||||
# selinux
|
# selinux
|
||||||
Boolean $ne_include_selinux = true,
|
Boolean $ne_include_selinux = true,
|
||||||
@@ -930,6 +911,7 @@ class confdroid_nrpe::params (
|
|||||||
$os_name = $facts['os']['name']
|
$os_name = $facts['os']['name']
|
||||||
$os_release = $facts['os']['release']['major']
|
$os_release = $facts['os']['release']['major']
|
||||||
$nagios_server = $facts['nagios_server']
|
$nagios_server = $facts['nagios_server']
|
||||||
|
$nagios_source = $facts['nagios_source']
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$ne_service = 'nrpe'
|
$ne_service = 'nrpe'
|
||||||
|
|||||||
Reference in New Issue
Block a user