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

This commit is contained in:
Nick Chappell 2014-08-03 18:26:36 -07:00
parent f9193d14f7
commit 7b5f7a994f
2 changed files with 4 additions and 2 deletions

View file

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

View file

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