object_scheduleddowntime.conf.erb 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * WARNING: This scheduleddowntime definition is automatically generated by Puppet.
  3. * ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
  4. */
  5. /**
  6. * A ScheduledDowntime definition. You can create your own configuration files
  7. * in the conf.d directory (e.g. one per host). By default all *.conf
  8. * files in this directory are included.
  9. *
  10. */
  11. object ScheduledDowntime "<%= @object_scheduleddowntimename %>" {
  12. <%#- If any of the @ parameters are undefined, don't print anything for them: -%>
  13. host_name = "<%= @host_name -%>"
  14. <%- if @service_name -%>
  15. service_name = "<%= @service_name -%>"
  16. <%- end -%>
  17. author = "<%= @author -%>"
  18. comment = "<%= @comment -%>"
  19. <%- if @fixed != true -%>
  20. fixed = false
  21. <%- end -%>
  22. <%- if @duration -%>
  23. duration = <%= @duration %>
  24. <%- end -%>
  25. <%- if @ranges.empty? != true -%>
  26. ranges = {
  27. <%- @ranges.sort_by {|key, value| key}.each do |key, value| -%>
  28. "<%= key %>" = "<%= value %>"
  29. <%- end -%>
  30. }
  31. <%- end -%>
  32. }