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, $pager = undef,
$vars = {}, $vars = {},
$groups = [], $groups = [],
$enable_notifications = undef,
#Parameters to add: #Parameters to add:
# enable_notifications
# period # period
# types # types
# states # states

View file

@ -11,7 +11,6 @@
*/ */
//Parameters to add: //Parameters to add:
// enable_notifications
// period // period
// types // types
// states // states
@ -39,4 +38,7 @@ object User "<%= @object_username %>" {
<%- if @groups.length != 0 -%> <%- if @groups.length != 0 -%>
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>] groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
<%- end -%> <%- end -%>
<%- if @enable_notifications -%>
enable_notifications = <%= @enable_notifications -%>
<%- end -%>
} }