diff --git a/manifests/icinga2/objects/static_checks.pp b/manifests/icinga2/objects/static_checks.pp index 7f8c626e..3989ddf8 100644 --- a/manifests/icinga2/objects/static_checks.pp +++ b/manifests/icinga2/objects/static_checks.pp @@ -1,24 +1,25 @@ # Static checks on the icinga master class profile::icinga2::objects::static_checks { $checks_file = '/etc/icinga2/conf.d/static-checks.conf' ::icinga2::object::host {'www.softwareheritage.org': - import => ['generic-host'], - target => $checks_file, + import => ['generic-host'], + address => 'www.softwareheritage.org', + target => $checks_file, } ::icinga2::object::service {'Software Heritage Homepage': import => ['generic-service'], host_name => 'www.softwareheritage.org', check_command => 'http', target => $checks_file, vars => { http_vhost => 'www.softwareheritage.org', http_uri => '/', http_ssl => true, http_sni => true, http_string => 'Software Heritage', }, } }