Remove the dummy check if necessary
The dummy check is configured when LMA collector plugin is not
installed, this dummy check has been added to allow LMA infrastructure
alerting plugin to be tested alone by the CI.
Change-Id: Ifaec285e2913f8a382e26c363acc15da0aee0eb0
Closes-bug: #1638546
(cherry picked from commit 2720efe64a
)
This commit is contained in:
parent
1e81d7f376
commit
bfd14f25f7
|
@ -91,5 +91,11 @@ class lma_infra_alerting::nagios::hosts (
|
|||
'hostgroup_name' => 'primary-infrastructure_alerting'
|
||||
}
|
||||
}
|
||||
} else {
|
||||
include nagios::server_service
|
||||
file { "${nagios::params::config_dir}/${lma_infra_alerting::params::nagios_config_filename_prefix}service_dummy-check-for-ci.cfg":
|
||||
ensure => absent,
|
||||
notify => Class['nagios::server_service'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue