object_apply_dependency.conf.erb 1.4 KB

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