Recommit for updates in build 11
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
</li><li>
|
||||
<p>manage dynamic NRPE check command definitions</p>
|
||||
</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>
|
||||
<p>manage selinux rule exceptions (optional)</p>
|
||||
</li><li>
|
||||
@@ -129,7 +129,7 @@
|
||||
</li></ul>
|
||||
|
||||
<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>
|
||||
|
||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
</li><li>
|
||||
<p>manage dynamic NRPE check command definitions</p>
|
||||
</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>
|
||||
<p>manage selinux rule exceptions (optional)</p>
|
||||
</li><li>
|
||||
@@ -129,7 +129,7 @@
|
||||
</li></ul>
|
||||
|
||||
<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>
|
||||
|
||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||
|
||||
@@ -120,7 +120,7 @@ class confdroid_nrpe::firewall::iptables (
|
||||
) inherits confdroid_nrpe::params {
|
||||
if $ne_incl_fw == true {
|
||||
firewall { "${ne_fw_order_no}${ne_nrpe_port} port ${ne_nrpe_port}":
|
||||
source => $ne_nagios_source,
|
||||
source => $nagios_source,
|
||||
proto => 'tcp',
|
||||
dport => $ne_nrpe_port,
|
||||
jump => 'accept',
|
||||
|
||||
@@ -741,24 +741,6 @@ inherited by all classes except defines.
|
||||
—
|
||||
<div class='inline'>
|
||||
<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>
|
||||
|
||||
</li>
|
||||
@@ -781,6 +763,9 @@ inherited by all classes except defines.
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
78
|
||||
79
|
||||
80
|
||||
81
|
||||
82
|
||||
83
|
||||
@@ -865,13 +850,10 @@ inherited by all classes except defines.
|
||||
162
|
||||
163
|
||||
164
|
||||
165
|
||||
166
|
||||
167
|
||||
168</pre>
|
||||
165</pre>
|
||||
</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 (
|
||||
|
||||
@@ -918,7 +900,6 @@ class confdroid_nrpe::params (
|
||||
# firewall
|
||||
Boolean $ne_incl_fw = true,
|
||||
String $ne_fw_order_no = '50',
|
||||
String $ne_nagios_source = '0.0.0.0/0',
|
||||
|
||||
# selinux
|
||||
Boolean $ne_include_selinux = true,
|
||||
@@ -930,6 +911,7 @@ class confdroid_nrpe::params (
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
$nagios_server = $facts['nagios_server']
|
||||
$nagios_source = $facts['nagios_source']
|
||||
|
||||
# service
|
||||
$ne_service = 'nrpe'
|
||||
|
||||
Reference in New Issue
Block a user