24 lines
558 B
Puppet
24 lines
558 B
Puppet
# == Defined Type: monasca::checks::instances::host_alive
|
|
#
|
|
# configure monasca plugin yaml file for host_alive
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*host_name*]
|
|
# host name to check for aliveness
|
|
#
|
|
# [*alive_test*]
|
|
# executable to run to test for aliveness
|
|
#
|
|
define monasca::checks::instances::host_alive (
|
|
$host_name,
|
|
$alive_test,
|
|
) {
|
|
$conf_dir = $::monasca::agent::conf_dir
|
|
concat::fragment { "${title}_host_alive_instance":
|
|
target => "${conf_dir}/host_alive.yaml",
|
|
content => template('monasca/checks/host_alive.erb'),
|
|
order => '1',
|
|
}
|
|
}
|