Commit a70d5da3 authored by Walter Heck's avatar Walter Heck

Make sure we have a host object for the icinga server as well

parent 2f53c325
Pipeline #361 passed with stages
in 2 minutes and 23 seconds
......@@ -75,6 +75,26 @@ class opstheater::profile::icinga::server (
::Icinga2::Object::Zone <<| |>>
::Icinga2::Object::Endpoint <<| |>>
$icinga_host = hiera_hash(icinga2::host, {
'vars' => {
'os' => 'Linux',
'disks' => {
'disk /' => {
'disk_partition' => '/'
}
}
},
'import' => ['linux-host']
})
@@::icinga2::object::host { $::fqdn:
* => merge({
display_name => $::hostname,
address => $::facts[ipaddress],
target => "/etc/icinga2/zones.d/master/${::hostname}.conf",
}, $icinga_host),
}
# Static config files
file { '/etc/icinga2/zones.d/global-templates/templates.conf':
ensure => file,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment