]> granicus.if.org Git - icinga2/commitdiff
Extend upgrade docs 6672/head
authorJean-Louis Dupond <jean-louis@dupond.be>
Fri, 12 Oct 2018 08:05:20 +0000 (10:05 +0200)
committerJean-Louis Dupond <jean-louis@dupond.be>
Fri, 12 Oct 2018 08:05:20 +0000 (10:05 +0200)
doc/09-object-types.md
doc/16-upgrading-icinga-2.md

index 6dda8c91d83e68604e4daea2348568b82e62233c..e602047499a0bbd1fbbe957db557ae0f4ec7f59b 100644 (file)
@@ -1760,7 +1760,7 @@ Configuration Attributes:
   Name                      | Type                  | Description
   --------------------------|-----------------------|----------------------------------
   endpoints                 | Array of object names | **Optional.** Array of endpoint names located in this zone.
-  parent                    | Object name           | **Optional.** The name of the parent zone.
+  parent                    | Object name           | **Optional.** The name of the parent zone. (Do not specify a global zone)
   global                    | Boolean               | **Optional.** Whether configuration files for this zone should be [synced](06-distributed-monitoring.md#distributed-monitoring-global-zone-config-sync) to all endpoints. Defaults to `false`.
 
 Zone objects cannot currently be created with the API.
index 83b4bd3ecde78503f588705230b9252789724839..bc15462bb9e6e3f9275fc509a9ada68c3ba87ba1 100644 (file)
@@ -91,6 +91,21 @@ sending the recovery notification.
 
 More details can be found in [this PR](https://github.com/Icinga/icinga2/pull/6527).
 
+### Stricter configuration validation
+
+Some config errors are now fatal. While it never worked before, icinga2 refuses to start now!
+
+For example the following started to give a fatal error in 2.10:
+
+```
+  object Zone "XXX" {
+    endpoints = [ "master-server" ]
+    parent = "global-templates"
+  }
+```
+
+```critical/config: Error: Zone 'XXX' can not have a global zone as parent.```
+
 ## Upgrading to v2.9 <a id="upgrading-to-2-9"></a>
 
 ### Deprecation and Removal Notes <a id="upgrading-to-2-9-deprecation-removal-notes"></a>