Documentation: Link supported expression operators from sections about apply rules

fixes #7327

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
This commit is contained in:
Jonas Meurer 2014-10-07 13:38:02 +02:00 committed by Michael Friedrich
parent 1110f925ee
commit d04630f00b
2 changed files with 8 additions and 2 deletions

View File

@ -13,6 +13,7 @@ Jan Wagner <waja@cyconet.org>
Jason Young <jyoung15@gmail.com> Jason Young <jyoung15@gmail.com>
Jean-Marcel Flach <jean-marcel.flach@netways.de> Jean-Marcel Flach <jean-marcel.flach@netways.de>
Johannes Meyer <johannes.meyer@netways.de> Johannes Meyer <johannes.meyer@netways.de>
Jonas Meurer <jonas@freesources.org>
Marcus van Dam <marcus@marcusvandam.nl> Marcus van Dam <marcus@marcusvandam.nl>
Markus Frosch <markus@lazyfrosch.de> Markus Frosch <markus@lazyfrosch.de>
Michael Friedrich <michael.friedrich@netways.de> Michael Friedrich <michael.friedrich@netways.de>

View File

@ -462,7 +462,8 @@ another group of objects.
In this example the `assign where` condition is a boolean expression which is In this example the `assign where` condition is a boolean expression which is
evaluated for all objects of type `Host` and a new service with name "ping" evaluated for all objects of type `Host` and a new service with name "ping"
is created for each matching host. is created for each matching host. [Expression operators](#expression-operators)
may be used in `assign where` conditions.
The `to` keyword and the target type may be omitted if there is only one target The `to` keyword and the target type may be omitted if there is only one target
type, e.g. for the `Service` type. type, e.g. for the `Service` type.
@ -498,7 +499,8 @@ and `ignore where` conditions.
In this example the `assign where` condition is a boolean expression which is evaluated In this example the `assign where` condition is a boolean expression which is evaluated
for all objects of the type `Host`. Each matching host is added as member to the host group for all objects of the type `Host`. Each matching host is added as member to the host group
with the name "linux-servers". Membership exclusion can be controlled using the `ignore where` with the name "linux-servers". Membership exclusion can be controlled using the `ignore where`
condition. condition. [Expression operators](#expression-operators) may be used in `assign where` and
`ignore where` conditions.
Source Type | Variables Source Type | Variables
------------------|-------------- ------------------|--------------
@ -525,6 +527,9 @@ Non-empty array | [ "Hello" ] | true
Empty dictionary | {} | false Empty dictionary | {} | false
Non-empty dictionary | { key = "value" } | true Non-empty dictionary | { key = "value" } | true
For a list of supported expression operators for `assign where` and `ignore where`
statements, see [expression operators](#expression-operators).
### <a id="comments"></a> Comments ### <a id="comments"></a> Comments
The Icinga 2 configuration format supports C/C++-style and shell-style comments. The Icinga 2 configuration format supports C/C++-style and shell-style comments.