Rename to Environment constant

This commit is contained in:
Michael Friedrich 2018-08-09 12:41:22 +02:00
parent cd94b7731e
commit b350512b11
2 changed files with 2 additions and 2 deletions

View File

@ -407,10 +407,10 @@ Constant | Description
--------------------|-------------------
Vars |**Read-write.** Contains a dictionary with global custom attributes. Not set by default.
NodeName |**Read-write.** Contains the cluster node name. Set to the local hostname by default.
Environment |**Read-write**. The name of the Icinga environment. Included in the SNI host name when making outbound connections. Defaults to `production`.
RunAsUser |**Read-write.** Defines the user the Icinga 2 daemon is running as. Set in the Icinga 2 sysconfig.
RunAsGroup |**Read-write.** Defines the group the Icinga 2 daemon is running as. Set in the Icinga 2 sysconfig.
MaxConcurrentChecks |**Read-write.** The number of max checks run simultaneously. Defaults to `512`.
ApiEnvironment |**Read-write**. The name of the Icinga environment for ApiListener. Included in the SNI host name when making outbound connections. Defaults to `production`.
ApiBindHost |**Read-write.** Overrides the default value for the ApiListener `bind_host` attribute. Not set by default.
ApiBindPort |**Read-write.** Overrides the default value for the ApiListener `bind_port` attribute. Not set by default.

View File

@ -49,7 +49,7 @@ class ApiListener : ConfigObject
};
[config] String environment {
default {{{ return Application::GetConst("ApiEnvironment"); }}}
default {{{ return Application::GetConst("Environment"); }}}
};
[config] bool accept_config;