Added an enable_notifications parameter to the user object and rendering of it to the ERB template.

This commit is contained in:
Nick Chappell 2014-08-03 18:27:46 -07:00
parent 7b5f7a994f
commit 92e7a4f5e7
2 changed files with 4 additions and 2 deletions

View file

@ -16,8 +16,8 @@ define icinga2::object::user (
$pager = undef,
$vars = {},
$groups = [],
$enable_notifications = undef,
#Parameters to add:
# enable_notifications
# period
# types
# states

View file

@ -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 -%>
}