Added a pager parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
d5173611f4
commit
89b3e25e9a
2 changed files with 4 additions and 2 deletions
|
@ -13,8 +13,8 @@ define icinga2::object::user (
|
|||
$object_username = $name,
|
||||
$display_name = $name,
|
||||
$email = undef,
|
||||
$pager = undef,
|
||||
#Parameters to add:
|
||||
# pager
|
||||
# vars
|
||||
# groups
|
||||
# enable_notifications
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
|
||||
//Parameters to add:
|
||||
// pager
|
||||
// vars
|
||||
// groups
|
||||
// enable_notifications
|
||||
|
@ -31,4 +30,7 @@ object User "<%= @object_username %>" {
|
|||
<%- if @email -%>
|
||||
email "<%= @email -%>"
|
||||
<%- end -%>
|
||||
<%- if @pager -%>
|
||||
pager "<%= @pager -%>"
|
||||
<%- end -%>
|
||||
}
|
Loading…
Reference in a new issue