]> granicus.if.org Git - icinga2/commitdiff
Fix nested hostgroup example
authorBas Couwenberg <sebastic@xs4all.nl>
Tue, 26 Feb 2019 07:49:36 +0000 (08:49 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 19 Mar 2019 10:20:30 +0000 (11:20 +0100)
In Icinga 1.x the list of members was set on the group object, in Icinga 2 the list of groups is set on the member objects.

(cherry picked from commit 8d3c8fd107f5c6e0da5551992208213fd4b8a867)

doc/23-migrating-from-icinga-1x.md

index 4dd6e8397d5da07176100cdc6cdedf3e90a7e437..4583b16062d4381dee2c187ea1c56b952a98ced7 100644 (file)
@@ -116,11 +116,11 @@ This can be migrated to Icinga 2 and [using group assign](17-language-reference.
 
 
     object HostGroup "hg1" {
+      groups = [ "hg2" ]
       assign where host.name in [ "host1", "host2" ]
     }
 
     object HostGroup "hg2" {
-      groups = [ "hg1" ]
       assign where host.name == "host3"
     }