Added a vars parameter to the user object and rendering of it to the ERB template.

This commit is contained in:
Nick Chappell 2014-08-03 18:24:26 -07:00
parent 89b3e25e9a
commit f9193d14f7
2 changed files with 6 additions and 2 deletions

View file

@ -14,8 +14,8 @@ define icinga2::object::user (
$display_name = $name,
$email = undef,
$pager = undef,
$vars = {},
#Parameters to add:
# vars
# groups
# enable_notifications
# period

View file

@ -11,7 +11,6 @@
*/
//Parameters to add:
// vars
// groups
// enable_notifications
// period
@ -33,4 +32,9 @@ object User "<%= @object_username %>" {
<%- if @pager -%>
pager "<%= @pager -%>"
<%- end -%>
<%- if @vars.empty? != true -%>
<%- @vars.each_pair do |key, value| -%>
vars.<%= key %> = "<%= value %>"
<%- end -%>
<%- end -%>
}