2014-11-04 18:40:30 +01:00
|
|
|
/**
|
|
|
|
* 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 -%>
|
2014-11-19 07:16:42 +01:00
|
|
|
duration = <%= @duration %>
|
2014-11-04 18:40:30 +01:00
|
|
|
<%- end -%>
|
|
|
|
<%- if @ranges.empty? != true -%>
|
|
|
|
|
|
|
|
ranges = {
|
|
|
|
<%- @ranges.each_pair do |key, value| -%>
|
|
|
|
"<%= key %>" = "<%= value %>"
|
|
|
|
<%- end -%>
|
|
|
|
}
|
|
|
|
<%- end -%>
|
|
|
|
}
|