2019-11-02 14:00:06 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2017-09-25 14:41:43 +02:00
|
|
|
|
|
|
|
#include "base/configobject.hpp"
|
2021-07-22 14:34:07 +02:00
|
|
|
#include "base/tlsutility.hpp"
|
2017-09-25 14:41:43 +02:00
|
|
|
|
2019-11-02 17:24:34 +01:00
|
|
|
library icingadb;
|
2017-09-25 14:41:43 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2019-10-29 17:32:29 +01:00
|
|
|
class IcingaDB : ConfigObject
|
2017-09-25 14:41:43 +02:00
|
|
|
{
|
2021-01-19 09:43:12 +01:00
|
|
|
activation_priority 100;
|
|
|
|
|
2017-09-25 14:41:43 +02:00
|
|
|
[config] String host {
|
|
|
|
default {{{ return "127.0.0.1"; }}}
|
|
|
|
};
|
|
|
|
[config] int port {
|
2019-11-21 09:26:08 +01:00
|
|
|
default {{{ return 6380; }}}
|
2017-09-25 14:41:43 +02:00
|
|
|
};
|
|
|
|
[config] String path;
|
2021-07-05 15:09:54 +02:00
|
|
|
[config, no_user_view, no_user_modify] String password;
|
2017-09-25 14:41:43 +02:00
|
|
|
[config] int db_index;
|
2021-07-22 14:34:07 +02:00
|
|
|
|
|
|
|
[config] bool enable_tls {
|
|
|
|
default {{{ return false; }}}
|
|
|
|
};
|
|
|
|
|
|
|
|
[config] bool insecure_noverify {
|
|
|
|
default {{{ return false; }}}
|
|
|
|
};
|
|
|
|
|
|
|
|
[config] String cert_path;
|
|
|
|
[config] String key_path;
|
|
|
|
[config] String ca_path;
|
|
|
|
[config] String crl_path;
|
|
|
|
[config] String cipher_list {
|
|
|
|
default {{{ return DEFAULT_TLS_CIPHERS; }}}
|
|
|
|
};
|
|
|
|
[config] String tls_protocolmin {
|
|
|
|
default {{{ return DEFAULT_TLS_PROTOCOLMIN; }}}
|
|
|
|
};
|
2021-07-26 16:14:51 +02:00
|
|
|
|
|
|
|
[config] double connect_timeout {
|
|
|
|
default {{{ return DEFAULT_CONNECT_TIMEOUT; }}}
|
|
|
|
};
|
2021-10-14 12:00:59 +02:00
|
|
|
|
|
|
|
[no_storage] String environment_id {
|
|
|
|
get;
|
|
|
|
};
|
2017-09-25 14:41:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|