Recommit for updates in build 219
This commit is contained in:
@@ -3962,6 +3962,19 @@ inherited by all classes except defines.
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ng_enable_fail2ban</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -4299,7 +4312,16 @@ inherited by all classes except defines.
|
|||||||
754
|
754
|
||||||
755
|
755
|
||||||
756
|
756
|
||||||
757</pre>
|
757
|
||||||
|
758
|
||||||
|
759
|
||||||
|
760
|
||||||
|
761
|
||||||
|
762
|
||||||
|
763
|
||||||
|
764
|
||||||
|
765
|
||||||
|
766</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 431</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 431</span>
|
||||||
@@ -4546,6 +4568,15 @@ class confdroid_nagios::params (
|
|||||||
# single nagios checks
|
# single nagios checks
|
||||||
Boolean $ng_enable_swap_check = true,
|
Boolean $ng_enable_swap_check = true,
|
||||||
|
|
||||||
|
# fail2ban
|
||||||
|
Boolean $ng_enable_fail2ban = false,
|
||||||
|
#String $ng_fail2ban_jail = 'httpd',
|
||||||
|
#String $ng_fail2ban_log = '/var/log/secure',
|
||||||
|
#String $ng_fail2ban_regex = 'sshd.*Failed password for',
|
||||||
|
#String $ng_fail2ban_maxretry = '5',
|
||||||
|
#String $ng_fail2ban_findtime = '600',
|
||||||
|
#String $ng_fail2ban_bantime = '3600',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# Default facts
|
# Default facts
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ class confdroid_nagios::server::nagios (
|
|||||||
|
|
||||||
) inherits confdroid_nagios::params {
|
) inherits confdroid_nagios::params {
|
||||||
if $ng_nagios_server == $fqdn {
|
if $ng_nagios_server == $fqdn {
|
||||||
@@nagios_host { "localhost_${fqdn}":
|
@@nagios_host { $fqdn:
|
||||||
ensure => $ng_ping_ensure,
|
ensure => $ng_ping_ensure,
|
||||||
alias => 'localhost',
|
alias => 'localhost',
|
||||||
address => '127.0.0.1',
|
address => '127.0.0.1',
|
||||||
|
|||||||
Reference in New Issue
Block a user