Added a display_name parameter to the user object and rendering of it to the ERB template.

This commit is contained in:
Nick Chappell 2014-08-02 22:28:34 -07:00
parent 5272c38a38
commit 341f66433e
2 changed files with 4 additions and 2 deletions

View file

@ -11,8 +11,8 @@
define icinga2::object::user (
$object_username = $name,
$display_name = $name,
#Parameters to add:
# display_name
# email
# pager
# vars

View file

@ -11,7 +11,6 @@
*/
//Parameters to add:
// display_name
// email
// pager
// vars
@ -27,4 +26,7 @@ object User "<%= @object_username %>" {
<%#- Otherwise, include the parameter: -%>
import "<%= @template_to_import -%>"
<%- end -%>
<%- if @display_name -%>
display_name "<%= @display_name -%>"
<%- end -%>
}