From 6981ccf12d11cc9e6aa24cc0b29f6b39e2288007 Mon Sep 17 00:00:00 2001 From: Nick Chappell Date: Sat, 26 Jul 2014 20:53:07 -0700 Subject: [PATCH] Added an enable_flap_detection parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. --- manifests/object/host.pp | 2 +- templates/object_host.conf.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/object/host.pp b/manifests/object/host.pp index 647a296..6ba34a6 100644 --- a/manifests/object/host.pp +++ b/manifests/object/host.pp @@ -24,9 +24,9 @@ define icinga2::object::host ( $enable_active_checks = undef, $enable_passive_checks = undef, $enable_event_handler = undef, + $enable_flap_detection = undef, # Parameters that still need to be included: - # enable_flap_detection # enable_perfdata # event_command # flapping_threshold diff --git a/templates/object_host.conf.erb b/templates/object_host.conf.erb index bcb281b..7c5de86 100644 --- a/templates/object_host.conf.erb +++ b/templates/object_host.conf.erb @@ -11,7 +11,6 @@ */ //Parameters to include: -// * enable_flap_detection // * enable_perfdata // * event_command // * flapping_threshold @@ -72,4 +71,7 @@ object Host "<%= @object_hostname %>" { <%- if @enable_event_handler -%> enable_event_handler = <%= @enable_event_handler -%> <%- end -%> + <%- if @enable_flap_detection -%> + enable_flap_detection = <%= @enable_flap_detection -%> + <%- end -%> }