05f479d4f8
Signed-off-by: Alexandre Beche <alexandre.beche@gmail.com>
38 lignes
987 o
Text
38 lignes
987 o
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 -%>
|
|
}
|