object_timeperiod.conf.erb 939 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * WARNING: This NotificationCommand definition is automatically generated by Puppet.
  3. * ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
  4. */
  5. /**
  6. * A TimePeriod definition. You can create your own configuration files
  7. * in the conf.d directory (e.g. one per commnand). By default all *.conf
  8. * files in this directory are included.
  9. *
  10. */
  11. object TimePeriod "<%= @object_name %>" {
  12. <%#- If any of the @ parameters are undefined, don't print anything for them: -%>
  13. <%#- Otherwise, include the parameter: -%>
  14. <%- if @timeperiod_template_to_import -%>
  15. import "<%= @timeperiod_template_to_import -%>"
  16. <%- end -%>
  17. display_name = "<%= @timeperiod_display_name %>"
  18. <%- if @methods_update -%>
  19. methods.update = "<%= @methods_update -%>"
  20. <%- end -%>
  21. <%- if @ranges.empty? != true -%>
  22. ranges = {
  23. <%- @ranges.sort_by {|key, value| key}.each do |key, value| -%>
  24. "<%= key %>" = "<%= value %>"
  25. <%- end -%>
  26. }
  27. <%- end -%>
  28. }