diff options
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_master.pp')
-rw-r--r-- | sitemodules/profiles/manifests/icinga2_master.pp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_master.pp b/sitemodules/profiles/manifests/icinga2_master.pp index e6db26d..fe57804 100644 --- a/sitemodules/profiles/manifests/icinga2_master.pp +++ b/sitemodules/profiles/manifests/icinga2_master.pp @@ -87,4 +87,38 @@ class profiles::icinga2_master ( Icinga2::Object::Zone <<| |>> ~> Service['icinga2'] Icinga2::Object::Endpoint <<| |>> ~> Service['icinga2'] + + postgresql::server::db { 'icingaweb2': + user => 'icingaweb2', + password => postgresql_password( + 'icingaweb2', $web2_database_password + ), + } + + class { '::icingaweb2': + manage_repo => false, + import_schema => true, + db_type => 'pgsql', + db_host => 'localhost', + db_port => '5432', + db_username => 'icingaweb2', + db_password => $web2_database_password, + require => Postgresql::Server::Db['icingaweb2'], + } + + class { '::icingaweb2::module::monitoring', + ido_type => 'pgsql', + ido_host => 'localhost', + ido_port => 5432, + ido_db_name => 'icinga2', + ido_db_username => 'icinga2', + ido_db_password => $ido_database_password, + commandtransports => { + icinga2 => { + transport => 'api', + username => 'root', + password => $api_users['root']['password'], + } + } + } } |