diff --git a/manifests/object/service.pp b/manifests/object/service.pp index 133d633..da8fe66 100644 --- a/manifests/object/service.pp +++ b/manifests/object/service.pp @@ -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", diff --git a/templates/object_service.conf.erb b/templates/object_service.conf.erb index b0517ad..4d068cb 100644 --- a/templates/object_service.conf.erb +++ b/templates/object_service.conf.erb @@ -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 -%> } \ No newline at end of file