module-icinga2/templates/object_timeperiod.conf.erb
Steven Bambling ae65c9766b updating erb to use timeperiod methods
Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/37

refs#7217: https://dev.icinga.org/issues/7217
2014-11-11 21:22:00 -08:00

31 lines
971 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_timeperiod_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 @timeperiod_methods_update -%>
methods.update = "<%= @timeperiod_methods_update -%>"
<%- end -%>
<%- if @timeperiod_ranges.empty? != true -%>
ranges = {
<%- @timeperiod_ranges.each_pair do |key,value| -%>
"<%= key %>" = "<%= value %>"
<%- end -%>
}
<%- end -%>
}