2014-07-29 03:57:21 +02:00
|
|
|
/**
|
|
|
|
* WARNING: This service definition is automatically generated by Puppet.
|
|
|
|
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A service 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-07-29 04:08:03 +02:00
|
|
|
// Parameters to add:
|
|
|
|
// * vars
|
|
|
|
// * check_command
|
|
|
|
// * max_check_attempts
|
|
|
|
// * check_period
|
|
|
|
// * check_interval
|
|
|
|
// * retry_interval
|
|
|
|
// * enable_notifications
|
|
|
|
// * enable_active_checks
|
|
|
|
// * enable_passive_checks
|
|
|
|
// * enable_event_handler
|
|
|
|
// * enable_flap_detection
|
|
|
|
// * enable_perfdata
|
|
|
|
// * event_command
|
|
|
|
// * flapping_threshold
|
|
|
|
// * volatile
|
|
|
|
// * notes
|
|
|
|
// * notes_url
|
|
|
|
// * action_url
|
|
|
|
// * icon_image
|
|
|
|
// * icon_image_alt
|
|
|
|
|
2014-07-29 04:15:10 +02:00
|
|
|
object Service "<%= @object_servicename %>" {
|
|
|
|
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
|
|
|
|
<%- if @template_to_import -%>
|
|
|
|
<%#- Otherwise, include the parameter: -%>
|
|
|
|
import "<%= @template_to_import -%>"
|
|
|
|
<%- end -%>
|
2014-07-29 04:17:11 +02:00
|
|
|
<%- if @display_name -%>
|
|
|
|
display_name = "<%= @display_name -%>"
|
|
|
|
<%- end -%>
|
2014-07-29 04:22:00 +02:00
|
|
|
<%- if @host_name -%>
|
|
|
|
host_name = "<%= @host_name -%>"
|
|
|
|
<%- end -%>
|
2014-07-29 04:24:39 +02:00
|
|
|
<%- if @groups.length != 0 -%>
|
|
|
|
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
|
|
|
|
<%- end -%>
|
2014-07-29 04:15:10 +02:00
|
|
|
}
|