633e4faef9
refs#7715: https://dev.icinga.org/issues/7715
45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
/**
|
|
* WARNING: This apply Dependency definition is automatically generated by Puppet.
|
|
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
|
|
*/
|
|
|
|
/**
|
|
* An apply 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.
|
|
*
|
|
*/
|
|
|
|
apply Dependency "<%= @object_name %>" to "<%= @object_type %>"{
|
|
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
|
|
<%- if @parent_host_name -%>
|
|
parent_host_name = "<%= @parent_host_name -%>"
|
|
<%- end -%>
|
|
<%- if @child_host_name -%>
|
|
child_host_name = "<%= @child_host_name -%>"
|
|
<%- end -%>
|
|
<%- 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 -%>
|
|
disable_checks = <%= @disable_checks %>
|
|
<%- end -%>
|
|
<%- if @disable_notifications -%>
|
|
disable_notifications = <%= @disable_notifications %>
|
|
<%- end -%>
|
|
<%- if @period -%>
|
|
period = "<%= @period -%>"
|
|
<%- end -%>
|
|
<%- if @states.length != 0 -%>
|
|
states = [ <%- @states.each do |state| -%> <%= state %>, <%- end -%>]
|
|
<%- end -%>
|
|
<%- if @assign_where -%>
|
|
assign where <%= @assign_where %>
|
|
<%- end -%>
|
|
<%- if @ignore_where -%>
|
|
ignore where <%= @ignore_where %>
|
|
<%- end -%>
|
|
}
|