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

This commit is contained in:
Nick Chappell 2014-07-28 21:05:39 -07:00
parent 81c52e9862
commit 90f256fea0
2 changed files with 4 additions and 2 deletions

View file

@ -34,8 +34,8 @@ define icinga2::object::service (
$notes = undef,
$notes_url = undef,
$action_url = undef,
$icon_image = undef,
#Parameters to add:
# * icon_image
# * icon_image_alt
$target_dir = '/etc/icinga2/conf.d',
$target_file_name = "${name}.conf",

View file

@ -11,7 +11,6 @@
*/
// Parameters to add:
// * icon_image
// * icon_image_alt
object Service "<%= @object_servicename %>" {
@ -85,4 +84,7 @@ object Service "<%= @object_servicename %>" {
<%- if @action_url -%>
action_url = "<%= @action_url -%>"
<%- end -%>
<%- if @icon_image -%>
icon_image = "<%= @icon_image -%>"
<%- end -%>
}