module-icinga2/templates/object_scheduleddowntime.conf.erb

38 líneas
965 B
Text

/**
* WARNING: This scheduleddowntime definition is automatically generated by Puppet.
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
*/
/**
* A ScheduledDowntime definition. 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.
*
*/
object ScheduledDowntime "<%= @object_scheduleddowntimename %>" {
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
host_name = "<%= @host_name -%>"
<%- if @service_name -%>
service_name = "<%= @service_name -%>"
<%- end -%>
author = "<%= @author -%>"
comment = "<%= @comment -%>"
<%- if @fixed != true -%>
fixed = false
<%- end -%>
<%- if @duration -%>
duration = <%= @duration %>
<%- end -%>
<%- if @ranges.empty? != true -%>
ranges = {
<%- @ranges.each_pair do |key, value| -%>
"<%= key %>" = "<%= value %>"
<%- end -%>
}
<%- end -%>
}