Added an enable_notifications parameter to the user object defined type.

This commit is contained in:
Nick Chappell 2014-08-24 17:48:28 -07:00
parent 7a21694ab2
commit 2c6d82895c
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,7 @@ define icinga2::object::user (
$display_name = $name,
$email = undef,
$pager = undef,
$enable_notifications = 'true',
$vars = {},
$groups = [],
$enable_notifications = undef,

View file

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