Added a display_name parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
5272c38a38
commit
341f66433e
2 changed files with 4 additions and 2 deletions
|
@ -11,8 +11,8 @@
|
|||
|
||||
define icinga2::object::user (
|
||||
$object_username = $name,
|
||||
$display_name = $name,
|
||||
#Parameters to add:
|
||||
# display_name
|
||||
# email
|
||||
# pager
|
||||
# vars
|
||||
|
|
|
@ -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 -%>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue