From: Michael Friedrich Date: Tue, 2 Oct 2012 13:04:17 +0000 (+0200) Subject: Configuration: add _path suffix to IcingaApplication attributes "ca" and "cert" X-Git-Tag: v0.0.1~44^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb50720843d91c000ffde960f95644aef4cc5360;p=icinga2 Configuration: add _path suffix to IcingaApplication attributes "ca" and "cert" refs #3222 --- diff --git a/docs/icinga2-config.txt b/docs/icinga2-config.txt index 36d041b0a..203fb5f0a 100644 --- a/docs/icinga2-config.txt +++ b/docs/icinga2-config.txt @@ -326,8 +326,8 @@ Example: ------------------------------------------------------------------------------- local object IcingaApplication "icinga" { - cert = "my-cert.pem", - ca = "ca.crt", + cert_path = "my-cert.pem", + ca_path = "ca.crt", node = "192.168.0.1", service = 7777, @@ -342,15 +342,15 @@ local object IcingaApplication "icinga" { } ------------------------------------------------------------------------------- -Attribute: cert -^^^^^^^^^^^^^^^ +Attribute: cert_path +^^^^^^^^^^^^^^^^^^^^ This is used to specify the SSL client certificate Icinga 2 will use when connecting to other Icinga 2 instances. This property is optional when you're setting up a non-networked Icinga 2 instance. -Attribute: ca -^^^^^^^^^^^^^ +Attribute: ca_path +^^^^^^^^^^^^^^^^^^ This is the public CA certificate that is used to verify connections from other Icinga 2 instances. This property is optional when you're setting up a diff --git a/lib/icinga/icingaapplication.cpp b/lib/icinga/icingaapplication.cpp index 042187121..bc616f856 100644 --- a/lib/icinga/icingaapplication.cpp +++ b/lib/icinga/icingaapplication.cpp @@ -90,8 +90,8 @@ int IcingaApplication::Main(const vector& args) } } - m_CertificateFile = Get("cert"); - m_CAFile = Get("ca"); + m_CertificateFile = Get("cert_path"); + m_CAFile = Get("ca_path"); m_Node = Get("node"); m_Service = Get("service");