From d04630f00b21d0fb5ef6c9419a2bcb300dee50ad Mon Sep 17 00:00:00 2001 From: Jonas Meurer Date: Tue, 7 Oct 2014 13:38:02 +0200 Subject: [PATCH] Documentation: Link supported expression operators from sections about apply rules fixes #7327 Signed-off-by: Michael Friedrich --- AUTHORS | 1 + doc/6-configuring-icinga-2.md | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index fa213293f..e30f585d3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -13,6 +13,7 @@ Jan Wagner Jason Young Jean-Marcel Flach Johannes Meyer +Jonas Meurer Marcus van Dam Markus Frosch Michael Friedrich diff --git a/doc/6-configuring-icinga-2.md b/doc/6-configuring-icinga-2.md index 4a9bab41a..76c0c405c 100644 --- a/doc/6-configuring-icinga-2.md +++ b/doc/6-configuring-icinga-2.md @@ -462,7 +462,8 @@ another group of objects. 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" -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 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 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` -condition. +condition. [Expression operators](#expression-operators) may be used in `assign where` and +`ignore where` conditions. Source Type | Variables ------------------|-------------- @@ -525,6 +527,9 @@ Non-empty array | [ "Hello" ] | true Empty dictionary | {} | false 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). + ### Comments The Icinga 2 configuration format supports C/C++-style and shell-style comments.