Added a parameter and default value for the icon_image parameter; added it to the service object ERB template.
This commit is contained in:
parent
81c52e9862
commit
90f256fea0
2 changed files with 4 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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 -%>
|
||||
}
|
Loading…
Reference in a new issue