module-icinga2/templates/object_apply_service_to_host.conf.erb
Nick Chappell 221db2b331 Squashed commit of the following:
commit 11075072f476dd857d190d26cdb1091e2a8cb6f4
Merge: ca583a8 8e24b03
Author: Nick Chappell <nick@intronic.org>
Date:   Thu Jan 29 21:20:21 2015 -0800

    Merge branch 'fix_apply_service_to_host_period' of https://github.com/arioch/puppet-icinga2 into arioch-fix_apply_service_to_host_period

commit 8e24b03958c50a36a8ceaab2ce89b8876d89f6ed
Author: Tom De Vylder <tom@penumbra.be>
Date:   Wed Jan 28 14:28:10 2015 +0100

    Fix undefined script variable error
2015-01-29 21:46:02 -08:00

96 lines
2.8 KiB
Text

/**
* WARNING: This service definition is automatically generated by Puppet.
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
*/
/**
* A object definition that applys services to hosts. You can create your
* own configuration files in the conf.d directory (e.g. one per host).
* By default all *.conf files in this directory are included.
*
*/
apply Service "<%= @object_servicename %>" to Host {
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
<%- if @template_to_import -%>
<%#- Otherwise, include the parameter: -%>
import "<%= @template_to_import -%>"
<%- end -%>
<%- if @display_name -%>
display_name = "<%= @display_name -%>"
<%- end -%>
<%- if @host_name -%>
host_name = "<%= @host_name -%>"
<%- end -%>
<%- if @assign_where -%>
assign where <%= @assign_where -%>
<%- end -%>
<%- if @ignore_where -%>
ignore where <%= @ignore_where -%>
<%- end -%>
<%- if @groups.length != 0 -%>
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
<%- end -%>
<%- if @check_command -%>
check_command = "<%= @check_command -%>"
<%- end -%>
<%- if @vars.empty? != true -%>
<%- @vars.sort_by {|key, value| key}.each do |key, value| -%>
vars.<%= key %> = "<%= value %>"
<%- end -%>
<%- end -%>
<%- if @max_check_attempts -%>
max_check_attempts = <%= @max_check_attempts %>
<%- end -%>
<%- if @check_period -%>
check_period = "<%= @check_period %>"
<%- end -%>
<%- if @check_interval -%>
check_interval = <%= @check_interval %>
<%- end -%>
<%- if @retry_interval -%>
retry_interval = <%= @retry_interval %>
<%- end -%>
<%- if @enable_notifications -%>
enable_notifications = <%= @enable_notifications %>
<%- end -%>
<%- if @enable_active_checks -%>
enable_active_checks = <%= @enable_active_checks %>
<%- end -%>
<%- if @enable_passive_checks -%>
enable_passive_checks = <%= @enable_passive_checks %>
<%- end -%>
<%- if @enable_event_handler -%>
enable_event_handler = <%= @enable_event_handler %>
<%- end -%>
<%- if @enable_flapping -%>
enable_flapping = <%= @enable_flapping %>
<%- end -%>
<%- if @enable_perfdata -%>
enable_perfdata = <%= @enable_perfdata %>
<%- end -%>
<%- if @event_command -%>
event_command = "<%= @event_command -%>"
<%- end -%>
<%- if @flapping_threshold -%>
flapping_threshold = "<%= @flapping_threshold -%>"
<%- end -%>
<%- if @volatile -%>
volatile = "<%= @volatile -%>"
<%- end -%>
<%- if @notes -%>
notes = "<%= @notes -%>"
<%- end -%>
<%- if @notes_url -%>
notes_url = "<%= @notes_url -%>"
<%- end -%>
<%- if @action_url -%>
action_url = "<%= @action_url -%>"
<%- end -%>
<%- if @icon_image -%>
icon_image = "<%= @icon_image -%>"
<%- end -%>
<%- if @icon_image_alt -%>
icon_image_alt = "<%= @icon_image_alt -%>"
<%- end -%>
}