OP#490 edit host address
This commit is contained in:
@@ -670,6 +670,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']
|
||||||
|
|||||||
@@ -7,7 +7,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