module-icinga2/templates/object_dependency.conf.erb
Melanie Gault 80c87b0ad1 add dependency and apply dependency objects
Signed-off-by: Nick Chappell <nick@intronic.org>

Icinga refs#7219: https://dev.icinga.org/issues/7219
2014-10-14 21:52:18 -07:00

36 lines
1.1 KiB
Text

/**
* WARNING: This hostgroup definition is automatically generated by Puppet.
* 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 -%>
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 -%>
}