module-icinga2/templates/object_scheduleddowntime.conf.erb
Alexandre Beche 05f479d4f8 Fixing hash ordering in erb templates
Signed-off-by: Alexandre Beche <alexandre.beche@gmail.com>
2015-01-13 16:35:31 +01:00

38 rader
987 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.sort_by {|key, value| key}.each do |key, value| -%>
"<%= key %>" = "<%= value %>"
<%- end -%>
}
<%- end -%>
}