mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Merge pull request #6975 from sebastic/patch-1
Fix nested hostgroup example
This commit is contained in:
commit
c477018313
@ -116,11 +116,11 @@ This can be migrated to Icinga 2 and [using group assign](17-language-reference.
|
|||||||
|
|
||||||
|
|
||||||
object HostGroup "hg1" {
|
object HostGroup "hg1" {
|
||||||
|
groups = [ "hg2" ]
|
||||||
assign where host.name in [ "host1", "host2" ]
|
assign where host.name in [ "host1", "host2" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
object HostGroup "hg2" {
|
object HostGroup "hg2" {
|
||||||
groups = [ "hg1" ]
|
|
||||||
assign where host.name == "host3"
|
assign where host.name == "host3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user