Recommit for updates in build 6
This commit is contained in:
@@ -98,6 +98,11 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class='object_link'><a href="puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_fail2ban::monitoring::target (puppet_class)">confdroid_fail2ban::monitoring::target</a></span>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class='object_link'><a href="puppet_classes/confdroid_fail2ban_3A_3Aparams.html" title="puppet_classes::confdroid_fail2ban::params (puppet_class)">confdroid_fail2ban::params</a></span>
|
<span class='object_link'><a href="puppet_classes/confdroid_fail2ban_3A_3Aparams.html" title="puppet_classes::confdroid_fail2ban::params (puppet_class)">confdroid_fail2ban::params</a></span>
|
||||||
|
|
||||||
|
|||||||
@@ -135,6 +135,8 @@
|
|||||||
<p>manage service status</p>
|
<p>manage service status</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
|
<p>Sometimes it is required to have the service on a host stopped for some reason, i.e. for troubleshooting fail2ban. In that case you can simply set <code>fn_enable_service</code>to <code>stopped</code> via ENC.</p>
|
||||||
|
|
||||||
<h2 id="label-Dependencies">Dependencies</h2>
|
<h2 id="label-Dependencies">Dependencies</h2>
|
||||||
|
|
||||||
<p>All dependencies must be included in the catalogue.</p>
|
<p>All dependencies must be included in the catalogue.</p>
|
||||||
|
|||||||
@@ -135,6 +135,8 @@
|
|||||||
<p>manage service status</p>
|
<p>manage service status</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
|
<p>Sometimes it is required to have the service on a host stopped for some reason, i.e. for troubleshooting fail2ban. In that case you can simply set <code>fn_enable_service</code>to <code>stopped</code> via ENC.</p>
|
||||||
|
|
||||||
<h2 id="label-Dependencies">Dependencies</h2>
|
<h2 id="label-Dependencies">Dependencies</h2>
|
||||||
|
|
||||||
<p>All dependencies must be included in the catalogue.</p>
|
<p>All dependencies must be included in the catalogue.</p>
|
||||||
|
|||||||
@@ -78,7 +78,14 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::confdroid_fail2ban::params" class="odd">
|
<li id="object_puppet_classes::confdroid_fail2ban::monitoring::target" class="odd">
|
||||||
|
<div class="item">
|
||||||
|
<span class='object_link'><a href="puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_fail2ban::monitoring::target (puppet_class)">confdroid_fail2ban::monitoring::target</a></span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="object_puppet_classes::confdroid_fail2ban::params" class="even">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class='object_link'><a href="puppet_classes/confdroid_fail2ban_3A_3Aparams.html" title="puppet_classes::confdroid_fail2ban::params (puppet_class)">confdroid_fail2ban::params</a></span>
|
<span class='object_link'><a href="puppet_classes/confdroid_fail2ban_3A_3Aparams.html" title="puppet_classes::confdroid_fail2ban::params (puppet_class)">confdroid_fail2ban::params</a></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,156 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>
|
||||||
|
Puppet Class: confdroid_fail2ban::monitoring::target
|
||||||
|
|
||||||
|
— Documentation by YARD 0.9.36
|
||||||
|
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
pathId = "puppet_classes::confdroid_fail2ban::monitoring::target";
|
||||||
|
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">confdroid_fail2ban::monitoring::target</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: confdroid_fail2ban::monitoring::target</h1>
|
||||||
|
<div class="box_info">
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Inherits:</dt>
|
||||||
|
<dd><span class='object_link'><a href="confdroid_fail2ban_3A_3Aparams.html" title="puppet_classes::confdroid_fail2ban::params (puppet_class)">confdroid_fail2ban::params</a></span></dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Defined in:</dt>
|
||||||
|
<dd>
|
||||||
|
manifests/monitoring/target.pp
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Summary</h2>
|
||||||
|
class manages exports for nagios monitoring
|
||||||
|
|
||||||
|
<h2>Overview</h2>
|
||||||
|
<div class="docstring">
|
||||||
|
<div class="discussion">
|
||||||
|
|
||||||
|
<p>confdroid_fail2ban::monitoring::target.pp Module name: confdroid_fail2ban Author: 12ww1160 (12ww1160@puppetsoft.com)</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="tags">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div><div class="method_details_list">
|
||||||
|
<table class="source_code">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
6
|
||||||
|
7
|
||||||
|
8
|
||||||
|
9
|
||||||
|
10
|
||||||
|
11
|
||||||
|
12
|
||||||
|
13
|
||||||
|
14
|
||||||
|
15
|
||||||
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
19
|
||||||
|
20
|
||||||
|
21
|
||||||
|
22
|
||||||
|
23</pre>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<pre class="code"><span class="info file"># File 'manifests/monitoring/target.pp', line 6</span>
|
||||||
|
|
||||||
|
class confdroid_fail2ban::monitoring::target (
|
||||||
|
|
||||||
|
) inherits confdroid_fail2ban::params {
|
||||||
|
if $fn_incl_target == true {
|
||||||
|
@@nagios_service { "check_fail2ban_${fqdn}":
|
||||||
|
check_command => 'check_procs -c 1:1 -a fail2ban-server',
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_check_fail2ban",
|
||||||
|
target => $fn_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
contacts => $fn_target_contacts,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}</pre>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="footer">
|
||||||
|
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -77,6 +77,8 @@
|
|||||||
|
|
||||||
<span class='object_link'><a href="confdroid_fail2ban_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_fail2ban::main::service (puppet_class)">confdroid_fail2ban::main::service</a></span><br/>
|
<span class='object_link'><a href="confdroid_fail2ban_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_fail2ban::main::service (puppet_class)">confdroid_fail2ban::main::service</a></span><br/>
|
||||||
|
|
||||||
|
<span class='object_link'><a href="confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_fail2ban::monitoring::target (puppet_class)">confdroid_fail2ban::monitoring::target</a></span><br/>
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
@@ -813,6 +815,60 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>the fail path. defaults to fedora.</p>
|
<p>the fail path. defaults to fedora.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>fn_incl_target</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>Whether to include monitoring targets for nagios. If set to true, monitoring targets will be included for the service.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>fn_target_service</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'/etc/nagios/conf.d/fail2ban_service.cfg'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>The path to the nagios service configuration file to be created if fn_incl_target is set to true.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>fn_target_contacts</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'nagiosadmin'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>The nagios contacts to be notified for the service if fn_incl_target is set to true.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -828,12 +884,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
104
|
|
||||||
105
|
|
||||||
106
|
|
||||||
107
|
|
||||||
108
|
|
||||||
109
|
|
||||||
110
|
110
|
||||||
111
|
111
|
||||||
112
|
112
|
||||||
@@ -915,10 +965,21 @@
|
|||||||
188
|
188
|
||||||
189
|
189
|
||||||
190
|
190
|
||||||
191</pre>
|
191
|
||||||
|
192
|
||||||
|
193
|
||||||
|
194
|
||||||
|
195
|
||||||
|
196
|
||||||
|
197
|
||||||
|
198
|
||||||
|
199
|
||||||
|
200
|
||||||
|
201
|
||||||
|
202</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 104</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 110</span>
|
||||||
|
|
||||||
class confdroid_fail2ban::params (
|
class confdroid_fail2ban::params (
|
||||||
|
|
||||||
@@ -974,6 +1035,11 @@ class confdroid_fail2ban::params (
|
|||||||
String $fn_default_action = 'action_',
|
String $fn_default_action = 'action_',
|
||||||
String $fn_jail_paths = 'fedora',
|
String $fn_jail_paths = 'fedora',
|
||||||
|
|
||||||
|
# nagios
|
||||||
|
Boolean $fn_incl_target = false,
|
||||||
|
String $fn_target_service = '/etc/nagios/conf.d/fail2ban_service.cfg',
|
||||||
|
String $fn_target_contacts = 'nagiosadmin',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# shortcuts
|
# shortcuts
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
Reference in New Issue
Block a user