module-icinga2/templates/object_timeperiod.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

31 rader
939 B
Text

/**
* WARNING: This NotificationCommand definition is automatically generated by Puppet.
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
*/
/**
* A TimePeriod definition. You can create your own configuration files
* in the conf.d directory (e.g. one per commnand). By default all *.conf
* files in this directory are included.
*
*/
object TimePeriod "<%= @object_name %>" {
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
<%#- Otherwise, include the parameter: -%>
<%- if @timeperiod_template_to_import -%>
import "<%= @timeperiod_template_to_import -%>"
<%- end -%>
display_name = "<%= @timeperiod_display_name %>"
<%- if @methods_update -%>
methods.update = "<%= @methods_update -%>"
<%- end -%>
<%- if @ranges.empty? != true -%>
ranges = {
<%- @ranges.sort_by {|key, value| key}.each do |key, value| -%>
"<%= key %>" = "<%= value %>"
<%- end -%>
}
<%- end -%>
}