Added an enable_notifications parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
7b5f7a994f
commit
92e7a4f5e7
2 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,8 @@ define icinga2::object::user (
|
|||
$pager = undef,
|
||||
$vars = {},
|
||||
$groups = [],
|
||||
$enable_notifications = undef,
|
||||
#Parameters to add:
|
||||
# enable_notifications
|
||||
# period
|
||||
# types
|
||||
# states
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
|
||||
//Parameters to add:
|
||||
// enable_notifications
|
||||
// period
|
||||
// types
|
||||
// states
|
||||
|
@ -39,4 +38,7 @@ object User "<%= @object_username %>" {
|
|||
<%- if @groups.length != 0 -%>
|
||||
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
|
||||
<%- end -%>
|
||||
<%- if @enable_notifications -%>
|
||||
enable_notifications = <%= @enable_notifications -%>
|
||||
<%- end -%>
|
||||
}
|
Loading…
Reference in a new issue