2014-11-04 13:39:18 +01:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-11-11 12:20:41 +01:00
|
|
|
object TimePeriod "<%= @object_name %>" {
|
2014-11-04 18:32:20 +01:00
|
|
|
<%#- 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 -%>
|
2014-11-04 13:39:18 +01:00
|
|
|
|
|
|
|
display_name = "<%= @timeperiod_display_name %>"
|
2014-11-11 12:20:41 +01:00
|
|
|
<%- if @methods_update -%>
|
|
|
|
methods.update = "<%= @methods_update -%>"
|
2014-11-04 18:32:20 +01:00
|
|
|
<%- end -%>
|
2014-11-11 12:20:41 +01:00
|
|
|
<%- if @ranges.empty? != true -%>
|
2014-11-04 13:39:18 +01:00
|
|
|
ranges = {
|
2015-01-13 16:35:31 +01:00
|
|
|
<%- @ranges.sort_by {|key, value| key}.each do |key, value| -%>
|
2014-11-04 13:39:18 +01:00
|
|
|
"<%= key %>" = "<%= value %>"
|
|
|
|
<%- end -%>
|
|
|
|
}
|
|
|
|
<%- end -%>
|
|
|
|
}
|