Added an icon_image parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters.

This commit is contained in:
Nick Chappell 2014-07-26 21:18:38 -07:00
parent 3e84b13e5b
commit e16704399e
2 changed files with 4 additions and 2 deletions

View file

@ -33,9 +33,9 @@ define icinga2::object::host (
$notes = undef,
$notes_url = undef,
$action_url = undef,
$icon_image = undef,
# Parameters that still need to be included:
# icon_image
# icon_image_alt
$target_dir = '/etc/icinga2/conf.d',
$target_file_name = "${fqdn}.conf",

View file

@ -11,7 +11,6 @@
*/
//Parameters to include:
// * icon_image
// * icon_image_alt
object Host "<%= @object_hostname %>" {
@ -88,4 +87,7 @@ object Host "<%= @object_hostname %>" {
<%- if @action_url -%>
action_url = "<%= @action_url -%>"
<%- end -%>
<%- if @icon_image -%>
icon_image = "<%= @icon_image -%>"
<%- end -%>
}