[icinga-checkins] icinga.org: chef-icinga2/master: Add README for merge_vars

git at icinga.org git at icinga.org
Tue Jul 19 18:05:05 CEST 2016


Module: chef-icinga2
Branch: master
Commit: d6dccbcfbed970da0cd43e99e93b6ffe1ba32036
URL:    https://git.icinga.org/?p=chef-icinga2.git;a=commit;h=d6dccbcfbed970da0cd43e99e93b6ffe1ba32036

Author: Gavin Reynolds <g.reynolds at src.gla.ac.uk>
Date:   Tue Jul 19 09:47:24 2016 +0100

Add README for merge_vars

---

 README.md |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index d75cca3..c285aef 100644
--- a/README.md
+++ b/README.md
@@ -896,12 +896,13 @@ Above LWRP resource will apply an icinga `Service` object to all `Hosts` with cu
 	  import 'generic-service'
 	  check_command 'check_snmp'
 	  assign_where ['"areca" in host.vars.enabled_services']
+	  merge_vars ['config']
 	  check_interval '5m'
 	  retry_interval '3m'
 	  max_check_attempts 2
 	end
 
-Above LWRP resource will apply an icinga `Service` object with a Service for set (also called hash or dictionary) to all `Hosts` with custom vars `host.vars.enabled_services` including 'areca'.
+Above LWRP resource will apply an icinga `Service` object with a Service for set (also called hash or dictionary) to all `Hosts` with custom vars `host.vars.enabled_services` including 'areca'. It will also merge the values in `config` into the `Service` object.
 
 
 **LWRP Options**
@@ -936,6 +937,7 @@ Above LWRP resource will apply an icinga `Service` object with a Service for set
 - *icon_image* (optional, String)	- icinga `Service` object attribute `icon_image`
 - *icon_image_alt* (optional, String)	- icinga `Service` object attribute `icon_image_alt`
 - *custom_vars* (optional, Hash)	- icinga `Service` object attribute `vars`
+- *merge_vars* (optional, Array)	- Merge vars from each member of a set into icinga `Service` object attribute `vars`
 - *assign_where* (optional, Array)	 - an array of `assign where` statements
 - *ignore_where* (optional, Array)	 - an array of `ignore where` statements
 



More information about the icinga-checkins mailing list