Commit 4b7c4333 authored by root's avatar root

added package for icinga on ubuntu os

parent bea03d2b
class opstheater::profile::base::apt {
# include base aptitude class
include ::apt
package { 'software-properties-common':
ensure => 'present',
}
Class[apt::update] -> Package['software-properties-common']
# get keys from hiera and create them
$keys = hiera_hash('opstheater::profile::base::apt::keys', undef)
......@@ -13,4 +19,5 @@ class opstheater::profile::base::apt {
if $repositories {
create_resources('apt::source', $repositories)
}
}
\ No newline at end of file
}
class opstheater::profile::base::icinga {
Class[apt::update] -> Package['icinga2']
Icinga2::Object::Host {
display_name => $::fqdn,
check_command => 'cluster-zone',
......
class opstheater::profile::client::trusty {
include opstheater::profile::base::filebeat
include opstheater::profile::base::filebeat
include opstheater::profile::base::apt
include opstheater::profile::base::icinga
include opstheater::profile::icinga::client
......@@ -13,4 +14,4 @@ class opstheater::profile::client::trusty {
minute => [ $rand1, $rand2],
}
}
\ No newline at end of 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