Added an enable_notifications parameter to the user object defined type.
This commit is contained in:
parent
7a21694ab2
commit
2c6d82895c
2 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,7 @@ define icinga2::object::user (
|
|||
$display_name = $name,
|
||||
$email = undef,
|
||||
$pager = undef,
|
||||
$enable_notifications = 'true',
|
||||
$vars = {},
|
||||
$groups = [],
|
||||
$enable_notifications = undef,
|
||||
|
|
|
@ -25,6 +25,9 @@ object User "<%= @object_username %>" {
|
|||
<%- if @pager -%>
|
||||
pager "<%= @pager -%>"
|
||||
<%- end -%>
|
||||
<%- if @enable_notifications -%>
|
||||
enable_notifications = "<%= @enable_notifications -%>"
|
||||
<%- end -%>
|
||||
<%- if @vars.empty? != true -%>
|
||||
<%- @vars.each_pair do |key, value| -%>
|
||||
vars.<%= key %> = "<%= value %>"
|
||||
|
|
Loading…
Reference in a new issue