Commit 1dea5e4b authored by Walter Heck's avatar Walter Heck

fix some small icinga problems

parent 4b5ed35a
......@@ -8,24 +8,4 @@ class opstheater::profile::base::icinga {
}
}
$lowercase_fqdn = downcase($::fqdn)
Icinga2::Object::Host {
display_name => $lowercase_fqdn,
check_command => 'cluster-zone',
target => "/etc/icinga2/conf.d/${lowercase_fqdn}.conf",
}
@@icinga2::object::host { $lowercase_fqdn:
vars => {
os => 'Linux',
remote => true,
remote_endpoint => $lowercase_fqdn,
notification => {
'mail' => {
'groups' => [ 'icingaadmins' ]
}
}
},
}
}
class opstheater::profile::icinga::client (
$parent_endpoints,
$parent_zone,
$parent_endpoints = {
'icinga2.opstheater.vm' => {
host => '10.20.1.20',
}
},
$parent_zone = 'master',
$agent_ip = $::facts[ipaddress],
) inherits opstheater::profile::params {
......@@ -46,7 +50,7 @@ class opstheater::profile::icinga::client (
display_name => $::hostname,
address => $agent_ip,
target => "/etc/icinga2/zones.d/${parent_zone}/${::hostname}.conf",
}, hiera_hash(icinga2::host)),
}, hiera_hash(icinga2::host, undef)),
}
@firewall { '201 allow access to icinga client':
......
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