mirror of https://github.com/Icinga/icinga2.git
Add documentation for /v1/config/stages 'activate' parameter
This commit is contained in:
parent
aece8d61e2
commit
fe6fdf57ba
|
@ -1848,8 +1848,12 @@ in the Director's deployment log.
|
||||||
Send a `POST` request to the URL endpoint `/v1/config/stages` and add the name of an existing
|
Send a `POST` request to the URL endpoint `/v1/config/stages` and add the name of an existing
|
||||||
configuration package to the URL path (e.g. `example-cmdb`).
|
configuration package to the URL path (e.g. `example-cmdb`).
|
||||||
The request body must contain the `files` attribute with the value being
|
The request body must contain the `files` attribute with the value being
|
||||||
a dictionary of file targets and their content. You can also specify an optional `reload` attribute
|
a dictionary of file targets and their content.
|
||||||
that will tell icinga2 to reload after stage config validation. By default this is set to `true`.
|
|
||||||
|
Optional attributes include `reload` (defaults to `true`) and `activate` (defaults to `true`).
|
||||||
|
The `reload` attribute will tell icinga2 to reload after stage config validation.
|
||||||
|
The `activate` attribute will tell icinga2 to activate the stage if it validates.
|
||||||
|
If `activate` is set to `false`, `reload` must also be `false`.
|
||||||
|
|
||||||
The file path requires one of these two directories inside its path:
|
The file path requires one of these two directories inside its path:
|
||||||
|
|
||||||
|
@ -1899,6 +1903,10 @@ can be disabled by setting `reload` to `false` in the request.
|
||||||
If the validation for the new config stage failed, the old stage
|
If the validation for the new config stage failed, the old stage
|
||||||
and its configuration objects will remain active.
|
and its configuration objects will remain active.
|
||||||
|
|
||||||
|
Activation may be inhibited even for stages that validate correctly by setting
|
||||||
|
`activate` to `false`. This may be useful for validating the contents of a stage
|
||||||
|
without making it active, for example in a CI (continuous integration) system.
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
>
|
>
|
||||||
> Old stages are not purged automatically. You can [remove stages](12-icinga2-api.md#icinga2-api-config-management-delete-config-stage) that are no longer in use.
|
> Old stages are not purged automatically. You can [remove stages](12-icinga2-api.md#icinga2-api-config-management-delete-config-stage) that are no longer in use.
|
||||||
|
|
Loading…
Reference in New Issue