2014-10-14 01:00:17 +02:00
|
|
|
/**
|
2014-10-15 06:59:09 +02:00
|
|
|
* WARNING: This host dependency definition is automatically generated by Puppet.
|
2014-10-14 01:00:17 +02:00
|
|
|
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A host dependency 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 Dependency "<%= @object_name %>" {
|
|
|
|
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
|
|
|
|
parent_host_name = "<%= @parent_host_name -%>"
|
|
|
|
child_host_name = "<%= @child_host_name -%>"
|
|
|
|
<%- if @parent_service_name -%>
|
|
|
|
parent_service_name = "<%= @parent_service_name -%>"
|
|
|
|
<%- end -%>
|
|
|
|
<%- if @child_service_name -%>
|
|
|
|
child_service_name = "<%= @child_service_name -%>"
|
|
|
|
<%- end -%>
|
|
|
|
<%- if @disable_checks -%>
|
2014-11-19 07:16:42 +01:00
|
|
|
disable_checks = <%= @disable_checks %>
|
2014-10-15 07:00:29 +02:00
|
|
|
<%- end -%>
|
2014-10-14 01:00:17 +02:00
|
|
|
<%- if @disable_notifications -%>
|
2014-11-19 07:16:42 +01:00
|
|
|
disable_notifications = <%= @disable_notifications %>
|
2014-10-15 07:00:29 +02:00
|
|
|
<%- end -%>
|
2014-10-14 01:00:17 +02:00
|
|
|
<%- if @period -%>
|
|
|
|
period = "<%= @period -%>"
|
|
|
|
<%- end -%>
|
|
|
|
<%- if @states.length != 0 -%>
|
|
|
|
states = [ <%- @states.each do |state| -%> <%= state %>, <%- end -%>]
|
|
|
|
<%- end -%>
|
|
|
|
}
|