Added a parameter and default value for the check_command parameter; added it to the service object ERB template.

This commit is contained in:
Nick Chappell 2014-07-28 19:30:55 -07:00
parent 948b5b68aa
commit 022abb8cdf
2 changed files with 4 additions and 2 deletions

View file

@ -16,8 +16,8 @@ define icinga2::object::service (
$host_name = $fqdn, $host_name = $fqdn,
$groups = [], $groups = [],
$vars = {}, $vars = {},
$check_command = undef,
#Parameters to add: #Parameters to add:
# * check_command
# * max_check_attempts # * max_check_attempts
# * check_period # * check_period
# * check_interval # * check_interval

View file

@ -11,7 +11,6 @@
*/ */
// Parameters to add: // Parameters to add:
// * check_command
// * max_check_attempts // * max_check_attempts
// * check_period // * check_period
// * check_interval // * check_interval
@ -51,4 +50,7 @@ object Service "<%= @object_servicename %>" {
vars.<%= key %> = "<%= value %>" vars.<%= key %> = "<%= value %>"
<%- end -%> <%- end -%>
<%- end -%> <%- end -%>
<%- if @check_command -%>
check_command = "<%= @check_command -%>"
<%- end -%>
} }