object_dependency.conf.erb 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * WARNING: This host dependency definition is automatically generated by Puppet.
  3. * ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
  4. */
  5. /**
  6. * A host dependency 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 Dependency "<%= @object_name %>" {
  12. <%#- If any of the @ parameters are undefined, don't print anything for them: -%>
  13. parent_host_name = "<%= @parent_host_name -%>"
  14. child_host_name = "<%= @child_host_name -%>"
  15. <%- if @parent_service_name -%>
  16. parent_service_name = "<%= @parent_service_name -%>"
  17. <%- end -%>
  18. <%- if @child_service_name -%>
  19. child_service_name = "<%= @child_service_name -%>"
  20. <%- end -%>
  21. <%- if @disable_checks -%>
  22. disable_checks = <%= @disable_checks %>
  23. <%- end -%>
  24. <%- if @disable_notifications -%>
  25. disable_notifications = <%= @disable_notifications %>
  26. <%- end -%>
  27. <%- if @period -%>
  28. period = "<%= @period -%>"
  29. <%- end -%>
  30. <%- if @states.length != 0 -%>
  31. states = [ <%- @states.each do |state| -%> <%= state %>, <%- end -%>]
  32. <%- end -%>
  33. }